java.lang.Object
org.broadleafcommerce.core.inventory.service.type.InventoryType
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.BroadleafEnumerationType

public class InventoryType extends Object implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
Enumeration to specify whether inventory should be checked or not.
Author:
Kelly Tisdell
See Also:
  • Field Details

    • ALWAYS_AVAILABLE

      public static final InventoryType ALWAYS_AVAILABLE
    • UNAVAILABLE

      public static final InventoryType UNAVAILABLE
    • CHECK_QUANTITY

      public static final InventoryType CHECK_QUANTITY
  • Constructor Details

    • InventoryType

      public InventoryType()
    • InventoryType

      public InventoryType(String type, String friendlyType)
  • Method Details

    • getInstance

      public static InventoryType getInstance(String type)
    • getType

      public String getType()
      Specified by:
      getType in interface org.broadleafcommerce.common.BroadleafEnumerationType
    • setType

      protected void setType(String type)
    • getFriendlyType

      public String getFriendlyType()
      Specified by:
      getFriendlyType in interface org.broadleafcommerce.common.BroadleafEnumerationType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object