Enum ETransferAmount
- java.lang.Object
-
- java.lang.Enum<ETransferAmount>
-
- ch.sahits.game.openpatrician.model.product.ETransferAmount
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ETransferAmount>
public enum ETransferAmount extends java.lang.Enum<ETransferAmount>
Enumeration over the transferable amount- Author:
- Andi Hotz, (c) Sahits GmbH, 2011 Created on Nov 25, 2011
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ETransferAmountvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ETransferAmount[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONE
public static final ETransferAmount ONE
Tranfer one item at the time
-
FIVE
public static final ETransferAmount FIVE
Transfer 5 items at the time
-
MAX
public static final ETransferAmount MAX
Transfer all items at the time
-
-
Method Detail
-
values
public static ETransferAmount[] 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 (ETransferAmount c : ETransferAmount.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ETransferAmount 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
-
-