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