Class AddressWithWGS84Position

java.lang.Object
de.powerstat.validation.values.Address
de.powerstat.validation.values.AddressWithWGS84Position
All Implemented Interfaces:
IValueObject, Comparable<Address>

public final class AddressWithWGS84Position extends Address
Address with wgs84 position. DSGVO relevant. TODO compareTo(): AddressWithWGS84Position
  • Field Details

    • position

      private final WGS84Position position
      WGS84 position.
  • Constructor Details

    • AddressWithWGS84Position

      private AddressWithWGS84Position(Country country, PostalCode postalCode, City city, Province province, District district, Street street, BuildingNr buildingNr, BuildingName buildingName, SubBuilding subBuilding, PoBoxNumber poBoxNumber, Department department, Neighbourhood neighbourhood, Block block, BFPONumber bFPONumber, Lines lines, WGS84Position position)
      Constructor.
      Parameters:
      country - Country
      postalCode - Postal code
      city - City
      province - Province
      district - District
      street - Street
      buildingNr - Bulding number
      buildingName - Building name
      subBuilding - Sub building
      poBoxNumber - Post office box number
      department - Department
      neighbourhood - Neighbourhood
      block - Block
      bFPONumber - British Forces Post Office Number
      lines - Lines 1-5
      position - WGS84Position
  • Method Details

    • of

      public static AddressWithWGS84Position of(Country country, PostalCode postalCode, City city, Province province, District district, Street street, BuildingNr buildingNr, BuildingName buildingName, SubBuilding subBuilding, PoBoxNumber poBoxNumber, Department department, Neighbourhood neighbourhood, Block block, BFPONumber bFPONumber, Lines lines, WGS84Position position)
      AddressWithWGS84Position factory.
      Parameters:
      country - Country
      postalCode - Postal code
      city - City
      province - Province
      district - District
      street - Street
      buildingNr - Bulding number
      buildingName - Building name
      subBuilding - Sub building
      poBoxNumber - Post office box number
      department - Department
      neighbourhood - Neighbourhood
      block - Block
      bFPONumber - British Forces Post Office Number
      lines - Lines 1-5
      position - WGS84Position
      Returns:
      AddressWithWGS84Position object
    • of

      public static AddressWithWGS84Position of(String value)
      AddressWithWGS84Position factory.
      Parameters:
      value - country,postalcode,city,province,district,street,buildingnr,buildingname,subbuilding,poboxnumber,department,neighbourhood,block,bfponumber,lines,latitude longitude altitude
      Returns:
      AddressWithWGS84Position object
    • getPosition

      public WGS84Position getPosition()
      Get position.
      Returns:
      The position
    • stringValue

      public String stringValue()
      Returns the value of this AddressWithWGS84Position as a string.
      Specified by:
      stringValue in interface IValueObject
      Overrides:
      stringValue in class Address
      Returns:
      The text value represented by this object after conversion to type string.
    • hashCode

      public int hashCode()
      Calculate hash code.
      Overrides:
      hashCode in class Address
      Returns:
      Hash
      See Also:
    • equals

      public boolean equals(Object obj)
      Is equal with another object.
      Overrides:
      equals in class Address
      Parameters:
      obj - Object
      Returns:
      true when equal, false otherwise
      See Also:
    • toString

      public String toString()
      Returns the string representation of this AddressWithWGS84Position. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "AddressWithWGS84Position[]"
      Overrides:
      toString in class Address
      Returns:
      String representation of this AddressWithWGS84Position
      See Also: