Enum Class OTHolder

java.lang.Object
java.lang.Enum<OTHolder>
com.astrepid.okapi.tracking.OTHolder
All Implemented Interfaces:
Serializable, Comparable<OTHolder>, Constable

public enum OTHolder extends Enum<OTHolder>
Holder of the package/parcel/letter.
  • Enum Constant Details

    • COURRIER_NATIONAL

      public static final OTHolder COURRIER_NATIONAL
    • COURRIER_INTERNATIONAL

      public static final OTHolder COURRIER_INTERNATIONAL
    • CHRONOPOST

      public static final OTHolder CHRONOPOST
    • COLISSIMO

      public static final OTHolder COLISSIMO
  • Method Details

    • values

      public static OTHolder[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OTHolder valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromCode

      public static OTHolder fromCode(int code)
      Parameters:
      code - code holder
      Returns:
      Holder
    • getCode

      public int getCode()
      Returns:
      the code
    • getLabel

      public String getLabel()
      Returns:
      the label