org.broadleafcommerce.common.util
Class WeightUnitOfMeasureType

java.lang.Object
  extended by org.broadleafcommerce.common.util.WeightUnitOfMeasureType
All Implemented Interfaces:
Serializable, BroadleafEnumerationType

public class WeightUnitOfMeasureType
extends Object
implements Serializable, BroadleafEnumerationType

An extendible enumeration of units of measure types.

Author:
jfischer
See Also:
Serialized Form

Field Summary
static WeightUnitOfMeasureType KILOGRAMS
           
static WeightUnitOfMeasureType POUNDS
           
 
Constructor Summary
WeightUnitOfMeasureType()
           
WeightUnitOfMeasureType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static WeightUnitOfMeasureType getInstance(String type)
           
 String getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POUNDS

public static final WeightUnitOfMeasureType POUNDS

KILOGRAMS

public static final WeightUnitOfMeasureType KILOGRAMS
Constructor Detail

WeightUnitOfMeasureType

public WeightUnitOfMeasureType()

WeightUnitOfMeasureType

public WeightUnitOfMeasureType(String type,
                               String friendlyType)
Method Detail

getInstance

public static WeightUnitOfMeasureType getInstance(String type)

getType

public String getType()
Specified by:
getType in interface BroadleafEnumerationType

getFriendlyType

public String getFriendlyType()
Specified by:
getFriendlyType in interface BroadleafEnumerationType

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2012. All Rights Reserved.