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