org.apache.cassandra.db
Enum TypeInfo
java.lang.Object
java.lang.Enum<TypeInfo>
org.apache.cassandra.db.TypeInfo
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TypeInfo>
public enum TypeInfo
- extends java.lang.Enum<TypeInfo>
Method Summary |
static TypeInfo |
fromByte(byte b)
|
static byte |
toByte(TypeInfo ti)
|
static TypeInfo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TypeInfo[] |
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 |
BYTE
public static final TypeInfo BYTE
CHAR
public static final TypeInfo CHAR
SHORT
public static final TypeInfo SHORT
INT
public static final TypeInfo INT
LONG
public static final TypeInfo LONG
DOUBLE
public static final TypeInfo DOUBLE
FLOAT
public static final TypeInfo FLOAT
STRING
public static final TypeInfo STRING
BLOB
public static final TypeInfo BLOB
values
public static TypeInfo[] 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 (TypeInfo c : TypeInfo.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TypeInfo 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
toByte
public static byte toByte(TypeInfo ti)
fromByte
public static TypeInfo fromByte(byte b)
Copyright © 2009 The Apache Software Foundation