public enum DistributedCounterOperationType extends java.lang.Enum<DistributedCounterOperationType> implements com.highdeal.util.IIdentifiable
| Enum Constant and Description |
|---|
DECREMENT
Constant for decrement type counter.
|
INCREMENT
Constant for increment type counter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
int |
getNumericalId()
The identifier of the object for which its classes implements this interface.
|
static DistributedCounterOperationType |
getOperationType(boolean isAllowanceShared,
boolean isIncrement) |
static DistributedCounterOperationType |
getOperationTypeFromNumericalId(int id) |
static DistributedCounterOperationType |
getOperationTypeFromPrettyName(java.lang.String prettyName) |
static DistributedCounterOperationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DistributedCounterOperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistributedCounterOperationType DECREMENT
public static final DistributedCounterOperationType INCREMENT
public static DistributedCounterOperationType[] values()
for (DistributedCounterOperationType c : DistributedCounterOperationType.values()) System.out.println(c);
public static DistributedCounterOperationType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
getName in interface com.highdeal.util.Nameablepublic int getNumericalId()
com.highdeal.util.IIdentifiablegetNumericalId in interface com.highdeal.util.IIdentifiablepublic static DistributedCounterOperationType getOperationTypeFromPrettyName(java.lang.String prettyName)
public static DistributedCounterOperationType getOperationTypeFromNumericalId(int id)
public static DistributedCounterOperationType getOperationType(boolean isAllowanceShared, boolean isIncrement)