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