Enum Class ContractType

java.lang.Object
java.lang.Enum<ContractType>
com.veeroute.lss.agro.model.ContractType
All Implemented Interfaces:
Serializable, Comparable<ContractType>, Constable

public enum ContractType extends Enum<ContractType>
Contract type: * `SELL_WITH_DELIVERY` - Contract for the sale of grain by the market with delivery to the client (the price of moving from the market is included in the price). * `SELL` - Contract for the sale of grain by the market without delivery (the price of moving from the market is not included in the price). * `BUY_WITH_DELIVERY` - Contract for the purchase of grain by the market with delivery from the client (the price of moving to the market is included in the price). * `BUY` - Contract for the purchase of grain by the market without delivery (the price of moving to the market is not included in the price).
  • Enum Constant Details

  • Method Details

    • values

      public static ContractType[] 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 ContractType 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
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ContractType>
    • fromValue

      public static ContractType fromValue(String value)
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Throws:
      IOException