Class RelatedProductTypeEnum

java.lang.Object
org.broadleafcommerce.core.catalog.domain.RelatedProductTypeEnum
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.BroadleafEnumerationType

public class RelatedProductTypeEnum extends Object implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
Extensible enumeration indicating types of product relations such as upsell, crosssell, or featured.

Created by bpolster.

See Also:
  • Field Details

  • Constructor Details

    • RelatedProductTypeEnum

      public RelatedProductTypeEnum()
    • RelatedProductTypeEnum

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

    • getInstance

      public static RelatedProductTypeEnum 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