Package com.fauna.codec
Enum FaunaType
- java.lang.Object
-
- java.lang.Enum<FaunaType>
-
- com.fauna.codec.FaunaType
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FaunaType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FaunaType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Int
public static final FaunaType Int
-
Long
public static final FaunaType Long
-
Double
public static final FaunaType Double
-
String
public static final FaunaType String
-
Date
public static final FaunaType Date
-
Time
public static final FaunaType Time
-
Boolean
public static final FaunaType Boolean
-
Object
public static final FaunaType Object
-
Ref
public static final FaunaType Ref
-
Document
public static final FaunaType Document
-
Array
public static final FaunaType Array
-
Bytes
public static final FaunaType Bytes
-
Null
public static final FaunaType Null
-
Stream
public static final FaunaType Stream
-
Module
public static final FaunaType Module
-
Set
public static final FaunaType Set
-
-
Method Detail
-
values
public static FaunaType[] 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 (FaunaType c : FaunaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FaunaType 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 namejava.lang.NullPointerException
- if the argument is null
-
-