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 TypeMethodDescriptionint
compareTo
(BFPONumber obj) Compare with another object.boolean
Is equal with another object.int
hashCode()
Calculate hash code.int
intValue()
Returns the value of this BFPONumber as an int.static BFPONumber
of
(int bFPONumber) BFPONumber factory.static BFPONumber
Factory 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:
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 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:
compareTo
in interfaceComparable<BFPONumber>
- Parameters:
obj
- Object to compare with- Returns:
- 0: equal; 1: greater; -1: smaller
- See Also:
-