Class BFPONumber

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

public final class BFPONumber extends Object implements Comparable<BFPONumber>, IValueObject
Address BFPONumber. Not DSGVO relevant.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    BFPONumber.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    BFPONumber(int bFPONumber)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Compare with another object.
    boolean
    Is equal with another object.
    int
    Calculate hash code.
    int
    Returns the value of this BFPONumber as an int.
    static BFPONumber
    of(int bFPONumber)
    BFPONumber factory.
    static BFPONumber
    of(String value)
    Factory for string values.
    Returns the value of this BFPONumber as a string.
    Returns the string representation of this BFPONumber.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • bFPONumber

      private final int bFPONumber
      BFPONumber.
  • Constructor Details

    • BFPONumber

      private BFPONumber(int bFPONumber)
      Constructor.
      Parameters:
      bFPONumber - BFPONumber
      Throws:
      IndexOutOfBoundsException - When the bFPONumber is out of bounds
  • Method Details

    • of

      public static BFPONumber of(int bFPONumber)
      BFPONumber factory.
      Parameters:
      bFPONumber - BFPONumber
      Returns:
      BFPONumber object
    • of

      public static BFPONumber of(String value)
      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

      public String stringValue()
      Returns the value of this BFPONumber 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 BFPONumber. The exact details of this representation are unspecified and subject to change, but the following may be regarded as typical: "BFPONumber[bFPONumber=2]"
      Overrides:
      toString in class Object
      Returns:
      String representation of this BFPONumber
      See Also:
    • compareTo

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