Enum Class ItemCategory

java.lang.Object
java.lang.Enum<ItemCategory>
dev.getelements.elements.sdk.model.goods.ItemCategory
All Implemented Interfaces:
Serializable, Comparable<ItemCategory>, Constable

public enum ItemCategory extends Enum<ItemCategory>
Identifies the category of an Item for sale.
  • Enum Constant Details

    • FUNGIBLE

      public static final ItemCategory FUNGIBLE
      Fungible items are equally valuable and interchangeable with each other. Fungible items apply to the simple and advanced inventory types.
    • DISTINCT

      public static final ItemCategory DISTINCT
      Distinct items are uniquely instantiated and are essentially copies of items derived from base digital goods that reference back to the original item.
  • Method Details

    • values

      public static ItemCategory[] 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 ItemCategory 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
    • getDefault

      public static ItemCategory getDefault()
      Gets the default item category.
      Returns:
      the default item category.
    • getOrDefault

      public static ItemCategory getOrDefault(ItemCategory category)