java.lang.Object
de.powerstat.validation.values.Firstname
- All Implemented Interfaces:
IValueObject,Comparable<Firstname>
Firstname.
DSGVO relevant.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FIRSTNAME_REGEXP
Firstname regexp. -
firstname
Firstname.
-
-
Constructor Details
-
Firstname
Constructor.- Parameters:
firstname- Firstname (maximum 32 characters)- Throws:
NullPointerException- if firstname is nullIllegalArgumentException- if firstname contains unsupported characters or is to long or short
-
-
Method Details
-
of
Firstname factory.- Parameters:
firstname- Firstname- Returns:
- Firstname object
-
stringValue
Returns the value of this Firstname as a string.- Specified by:
stringValuein 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 Firstname. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "Firstname[firstname=Kai]" -
compareTo
Compare with another object.- Specified by:
compareToin interfaceComparable<Firstname>- Parameters:
obj- Object to compare with- Returns:
- 0: equal; 1: greater; -1: smaller
- See Also:
-