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