org.xcmis.client.gwt.model
Enum Precision

java.lang.Object
  extended by java.lang.Enum<Precision>
      extended by org.xcmis.client.gwt.model.Precision
All Implemented Interfaces:
Serializable, Comparable<Precision>

public enum Precision
extends Enum<Precision>

Decimal property precision. At the moment support 32-bit and 64-bit precision.

Version:
$Id: $
Author:
Andrey Parfonov

Enum Constant Summary
Bit32
          32-bit precision.
Bit64
          64-bit precision.
 
Method Summary
static Precision fromValue(int value)
           
 int getValue()
           
 String toString()
           
static Precision valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Precision[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Bit32

public static final Precision Bit32
32-bit precision.


Bit64

public static final Precision Bit64
64-bit precision.

Method Detail

values

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

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

valueOf

public static Precision 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

getValue

public int getValue()
Returns:
int

fromValue

public static Precision fromValue(int value)
Parameters:
value - value
Returns:
value

toString

public String toString()
Overrides:
toString in class Enum<Precision>
See Also:
Enum.toString()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.