com.ftlabs.fisa.util
Enum PriceFractionFormat.PrecisionUnit

java.lang.Object
  extended by java.lang.Enum<PriceFractionFormat.PrecisionUnit>
      extended by com.ftlabs.fisa.util.PriceFractionFormat.PrecisionUnit
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PriceFractionFormat.PrecisionUnit>
Enclosing class:
PriceFractionFormat

public static enum PriceFractionFormat.PrecisionUnit
extends java.lang.Enum<PriceFractionFormat.PrecisionUnit>


Enum Constant Summary
_128
           
_256
           
_32
           
_512
           
_64
           
 
Method Summary
protected abstract  void buildFractionElement(int integer, int unitCount, PriceFractionFormat.PrecisionUnit pu, java.lang.StringBuffer sb)
           
 PriceFractionFormat.PrecisionUnit getLinkedUnit()
           
 int getTotalUnits()
           
 double getUnitValue()
           
protected abstract  double parseUnitValue(java.lang.String stringValue)
           
static PriceFractionFormat.PrecisionUnit valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PriceFractionFormat.PrecisionUnit[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

_32

public static final PriceFractionFormat.PrecisionUnit _32

_64

public static final PriceFractionFormat.PrecisionUnit _64

_128

public static final PriceFractionFormat.PrecisionUnit _128

_256

public static final PriceFractionFormat.PrecisionUnit _256

_512

public static final PriceFractionFormat.PrecisionUnit _512
Method Detail

values

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

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

valueOf

public static PriceFractionFormat.PrecisionUnit 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 name
java.lang.NullPointerException - if the argument is null

getTotalUnits

public int getTotalUnits()

getUnitValue

public double getUnitValue()

getLinkedUnit

public PriceFractionFormat.PrecisionUnit getLinkedUnit()

buildFractionElement

protected abstract void buildFractionElement(int integer,
                                             int unitCount,
                                             PriceFractionFormat.PrecisionUnit pu,
                                             java.lang.StringBuffer sb)

parseUnitValue

protected abstract double parseUnitValue(java.lang.String stringValue)