voldemort.serialization.json
Enum JsonTypes

java.lang.Object
  extended by java.lang.Enum<JsonTypes>
      extended by voldemort.serialization.json.JsonTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JsonTypes>

public enum JsonTypes
extends java.lang.Enum<JsonTypes>

An enum of JsonTypes (for convenience)


Enum Constant Summary
BOOLEAN
           
BYTES
           
DATE
           
FLOAT32
           
FLOAT64
           
INT16
           
INT32
           
INT64
           
INT8
           
STRING
           
 
Method Summary
static JsonTypes fromDisplay(java.lang.String name)
           
 java.lang.String toDisplay()
           
static JsonTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JsonTypes[] 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

BOOLEAN

public static final JsonTypes BOOLEAN

STRING

public static final JsonTypes STRING

INT8

public static final JsonTypes INT8

INT16

public static final JsonTypes INT16

INT32

public static final JsonTypes INT32

INT64

public static final JsonTypes INT64

FLOAT32

public static final JsonTypes FLOAT32

FLOAT64

public static final JsonTypes FLOAT64

BYTES

public static final JsonTypes BYTES

DATE

public static final JsonTypes DATE
Method Detail

values

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

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

valueOf

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

toDisplay

public java.lang.String toDisplay()

fromDisplay

public static JsonTypes fromDisplay(java.lang.String name)


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu