com.azalient.apo.basics
Enum Price.P_Units

java.lang.Object
  extended by java.lang.Enum<Price.P_Units>
      extended by com.azalient.apo.basics.Price.P_Units
All Implemented Interfaces:
Serializable, Comparable<Price.P_Units>
Enclosing class:
Price

public static enum Price.P_Units
extends Enum<Price.P_Units>

The preferred way of displaying prices, either in the prime (large) unit, or in the (smaller 1/100) centile unit


Enum Constant Summary
CENTILE_UNIT
          The small currency unit: cents, pence, etc.
PRIME_UNIT
          The prime currency unit: Dollars, Pounds, Euros, etc
 
Method Summary
static Price.P_Units valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Price.P_Units[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PRIME_UNIT

public static final Price.P_Units PRIME_UNIT
The prime currency unit: Dollars, Pounds, Euros, etc


CENTILE_UNIT

public static final Price.P_Units CENTILE_UNIT
The small currency unit: cents, pence, etc.

Method Detail

values

public static Price.P_Units[] 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 (Price.P_Units c : Price.P_Units.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Price.P_Units valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null