- java.lang.Object
-
- java.lang.Enum<FunctionType>
-
- io.virtdata.api.FunctionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FunctionType>,java.lang.constant.Constable
public enum FunctionType extends java.lang.Enum<FunctionType>
Captures the list of function object types which may be used to implement data mapping functions. Library implementations may rely on this for type metadata.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description double_doubledouble_intdouble_longdouble_Tint_doubleint_intint_longint_Tlong_doublelong_intlong_longlong_TR_T
-
Method Summary
Modifier and Type Method Description java.lang.Class<?>getFunctionClass()java.lang.Class<?>getInputClass()ValueTypegetInputValueType()java.lang.Class<?>getReturnClass()static FunctionTypevalueOf(java.lang.Class<?> clazz)Returns the enum constant of this type with the specified name.static FunctionTypevalueOf(java.lang.Object g)Returns the enum constant of this type with the specified name.static FunctionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FunctionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
long_long
public static final FunctionType long_long
-
long_int
public static final FunctionType long_int
-
long_double
public static final FunctionType long_double
-
long_T
public static final FunctionType long_T
-
int_int
public static final FunctionType int_int
-
int_long
public static final FunctionType int_long
-
int_double
public static final FunctionType int_double
-
int_T
public static final FunctionType int_T
-
double_T
public static final FunctionType double_T
-
double_double
public static final FunctionType double_double
-
double_int
public static final FunctionType double_int
-
double_long
public static final FunctionType double_long
-
R_T
public static final FunctionType R_T
-
-
Method Detail
-
values
public static FunctionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FunctionType 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
-
getInputClass
public java.lang.Class<?> getInputClass()
-
getReturnClass
public java.lang.Class<?> getReturnClass()
-
getFunctionClass
public java.lang.Class<?> getFunctionClass()
-
valueOf
public static FunctionType valueOf(java.lang.Class<?> clazz)
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:
clazz- 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
-
valueOf
public static FunctionType valueOf(java.lang.Object g)
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:
g- 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
-
getInputValueType
public ValueType getInputValueType()
-
-