java.lang.Object
de.powerstat.validation.values.BIC
All Implemented Interfaces:
IValueObject, Comparable<BIC>

public final class BIC extends Object implements Comparable<BIC>, IValueObject
Business Identifier Code (BIC) ISO 9362. Not DSGVO relevant.
  • Field Details

    • BIC_REGEXP

      private static final Pattern BIC_REGEXP
      BIC regexp.
    • bic

      private final String bic
      BIC.
  • Constructor Details

  • Method Details

    • of

      public static BIC of(String bic)
      BIC factory.
      Parameters:
      bic - BIC
      Returns:
      BIC object
    • stringValue

      public String stringValue()
      Returns the value of this BIC as a string.
      Specified by:
      stringValue in interface IValueObject
      Returns:
      The text value represented by this object after conversion to type string.
    • hashCode

      public int hashCode()
      Calculate hash code.
      Overrides:
      hashCode in class Object
      Returns:
      Hash
      See Also:
    • equals

      public boolean equals(Object obj)
      Is equal with another object.
      Overrides:
      equals in class Object
      Parameters:
      obj - Object
      Returns:
      true when equal, false otherwise
      See Also:
    • toString

      public String 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]"
      Overrides:
      toString in class Object
      Returns:
      String representation of this BIC
      See Also:
    • compareTo

      public int compareTo(BIC obj)
      Compare with another object.
      Specified by:
      compareTo in interface Comparable<BIC>
      Parameters:
      obj - Object to compare with
      Returns:
      0: equal; 1: greater; -1: smaller
      See Also: