Module de.powerstat.validation
Package de.powerstat.validation.values
Class AddressWithWGS84Position
java.lang.Object
de.powerstat.validation.values.Address
de.powerstat.validation.values.AddressWithWGS84Position
- All Implemented Interfaces:
IValueObject
,Comparable<Address>
Address with wgs84 position.
DSGVO relevant.
TODO compareTo(): AddressWithWGS84Position
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
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. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Is equal with another object.Get position.int
hashCode()
Calculate hash code.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.static AddressWithWGS84Position
AddressWithWGS84Position factory.Returns the value of this AddressWithWGS84Position as a string.toString()
Returns the string representation of this AddressWithWGS84Position.Methods inherited from class de.powerstat.validation.values.Address
compareTo, getBFPONumber, getBlock, getBuildingName, getBuildingNr, getCity, getCountry, getDepartment, getDistrict, getFormattedAddress, getLines, getNeighbourhood, getPoBoxNumber, getPostalCode, getProvince, getStreet, getSubBuilding, of
-
Field Details
-
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
- CountrypostalCode
- Postal codecity
- Cityprovince
- Provincedistrict
- Districtstreet
- StreetbuildingNr
- Bulding numberbuildingName
- Building namesubBuilding
- Sub buildingpoBoxNumber
- Post office box numberdepartment
- Departmentneighbourhood
- Neighbourhoodblock
- BlockbFPONumber
- British Forces Post Office Numberlines
- Lines 1-5position
- 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
- CountrypostalCode
- Postal codecity
- Cityprovince
- Provincedistrict
- Districtstreet
- StreetbuildingNr
- Bulding numberbuildingName
- Building namesubBuilding
- Sub buildingpoBoxNumber
- Post office box numberdepartment
- Departmentneighbourhood
- Neighbourhoodblock
- BlockbFPONumber
- British Forces Post Office Numberlines
- Lines 1-5position
- WGS84Position- Returns:
- AddressWithWGS84Position object
-
of
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
Get position.- Returns:
- The position
-
stringValue
Returns the value of this AddressWithWGS84Position as a string.- Specified by:
stringValue
in interfaceIValueObject
- Overrides:
stringValue
in classAddress
- Returns:
- The text value represented by this object after conversion to type string.
-
hashCode
public int hashCode()Calculate hash code. -
equals
Is equal with another object. -
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[]"
-