Package co.mastermindcms.modules.enums
Enum TradingUnit
- java.lang.Object
-
- java.lang.Enum<TradingUnit>
-
- co.mastermindcms.modules.enums.TradingUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TradingUnit>
public enum TradingUnit extends java.lang.Enum<TradingUnit>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
TradingUnit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TradingUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TradingUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PIECE
public static final TradingUnit PIECE
-
KG
public static final TradingUnit KG
-
LITRE
public static final TradingUnit LITRE
-
SACK
public static final TradingUnit SACK
-
BOX
public static final TradingUnit BOX
-
IBC
public static final TradingUnit IBC
-
BARREL
public static final TradingUnit BARREL
-
PALLET
public static final TradingUnit PALLET
-
JAR
public static final TradingUnit JAR
-
BAG
public static final TradingUnit BAG
-
CAN
public static final TradingUnit CAN
-
TETRA_PACK
public static final TradingUnit TETRA_PACK
-
CONTAINER
public static final TradingUnit CONTAINER
-
METRE
public static final TradingUnit METRE
-
BOTTLE
public static final TradingUnit BOTTLE
-
BIG_PACK
public static final TradingUnit BIG_PACK
-
BUNCH
public static final TradingUnit BUNCH
-
METRIC_TONN
public static final TradingUnit METRIC_TONN
-
-
Method Detail
-
values
public static TradingUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TradingUnit c : TradingUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TradingUnit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-