java.lang.Object
de.powerstat.validation.values.BFPONumber
- All Implemented Interfaces:
IValueObject,Comparable<BFPONumber>
Address BFPONumber.
Not DSGVO relevant.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(BFPONumber obj) Compare with another object.booleanIs equal with another object.inthashCode()Calculate hash code.intintValue()Returns the value of this BFPONumber as an int.static BFPONumberof(int bFPONumber) BFPONumber factory.static BFPONumberFactory for string values.Returns the value of this BFPONumber as a string.toString()Returns the string representation of this BFPONumber.
-
Field Details
-
bFPONumber
private final int bFPONumberBFPONumber.
-
-
Constructor Details
-
BFPONumber
private BFPONumber(int bFPONumber) Constructor.- Parameters:
bFPONumber- BFPONumber- Throws:
IndexOutOfBoundsException- When the bFPONumber is out of bounds
-
-
Method Details
-
of
BFPONumber factory.- Parameters:
bFPONumber- BFPONumber- Returns:
- BFPONumber object
-
of
Factory for string values.- Parameters:
value- String value- Returns:
- BFPONumber object
-
intValue
public int intValue()Returns the value of this BFPONumber as an int.- Returns:
- The numeric value represented by this object after conversion to type int.
-
stringValue
Returns the value of this BFPONumber 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 BFPONumber. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "BFPONumber[bFPONumber=2]" -
compareTo
Compare with another object.- Specified by:
compareToin interfaceComparable<BFPONumber>- Parameters:
obj- Object to compare with- Returns:
- 0: equal; 1: greater; -1: smaller
- See Also:
-