java.lang.Object
de.powerstat.validation.values.Street
- All Implemented Interfaces:
IValueObject
,Comparable<Street>
Address Street.
Not DSGVO relevant.
TODO Verify with openstreetmap
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
STREET_REGEXP
Street regexp. -
street
Street.
-
-
Constructor Details
-
Street
Constructor.- Parameters:
street
- Street name- Throws:
NullPointerException
- if street is nullIllegalArgumentException
- if street is not a correct Street name
-
-
Method Details
-
of
Street factory.- Parameters:
street
- Street- Returns:
- Street object
-
stringValue
Returns the value of this Street as a string.- Specified by:
stringValue
in interfaceIValueObject
- 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 Street. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "Street[street=Hemelinger Heerstraße]" -
compareTo
Compare with another object.- Specified by:
compareTo
in interfaceComparable<Street>
- Parameters:
obj
- Object to compare with- Returns:
- 0: equal; 1: greater; -1: smaller
- See Also:
-