Enum VatMode

java.lang.Object
java.lang.Enum<VatMode>
com.labs64.netlicensing.domain.vo.VatMode
All Implemented Interfaces:
Serializable, Comparable<VatMode>, java.lang.constant.Constable

public enum VatMode extends Enum<VatMode>
  • Enum Constant Details

    • GROSS

      public static final VatMode GROSS
      VatMode: Gross
    • NET

      public static final VatMode NET
      VatMode: Net
  • Method Details

    • values

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

      public static VatMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public String value()
      Get enum value.
      Returns:
      enum value
    • toString

      public String toString()
      Overrides:
      toString in class Enum<VatMode>
    • parseValue

      public static VatMode parseValue(String value)
      Parse product VAT mode to VatMode enum.
      Parameters:
      value - vatMode value
      Returns:
      VatMode enum object or throws IllegalArgumentException if no corresponding VatMode enum object found
    • parseValueSafe

      public static VatMode parseValueSafe(String val)
      Gets the enum safe.
      Parameters:
      val - the val
      Returns:
      the enum safe