java.lang.Object
de.powerstat.validation.values.SubBuilding
- All Implemented Interfaces:
IValueObject
,Comparable<SubBuilding>
Address Sub building.
Possibly DSGVO relevant.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(SubBuilding obj) Compare with another object.boolean
Is equal with another object.int
hashCode()
Calculate hash code.static SubBuilding
SubBuilding factory.Returns the value of this SubBuilding as a string.toString()
Returns the string representation of this SubBuilding.
-
Field Details
-
SUBBUILDING_REGEXP
Subbuilding regexp. -
subBuilding
Sub building.
-
-
Constructor Details
-
SubBuilding
Constructor.- Parameters:
subBuilding
- Sub building description- Throws:
NullPointerException
- if subBuilding is nullIllegalArgumentException
- if subBuilding is not correct
-
-
Method Details
-
of
SubBuilding factory.- Parameters:
subBuilding
- Sub building- Returns:
- SubBuilding object
-
stringValue
Returns the value of this SubBuilding 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 SubBuilding. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "SubBuilding[subBuilding=Floor 13, Apart. 0815]" -
compareTo
Compare with another object.- Specified by:
compareTo
in interfaceComparable<SubBuilding>
- Parameters:
obj
- Object to compare with- Returns:
- 0: equal; 1: greater; -1: smaller
- See Also:
-