Package ai.onnxruntime
Enum Class OnnxMap.OnnxMapValueType
- All Implemented Interfaces:
Serializable,Comparable<OnnxMap.OnnxMapValueType>,Constable
- Enclosing class:
- OnnxMap
An enum representing the Java type of the values stored in an
OnnxMap.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OnnxMap.OnnxMapValueTypemapFromInt(int value) Gets the enum type from it's integer id.static OnnxMap.OnnxMapValueTypeMaps aOnnxJavaTypeinto a map value type.static OnnxMap.OnnxMapValueTypeReturns the enum constant of this class with the specified name.static OnnxMap.OnnxMapValueType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
An invalid Map value type. -
STRING
A String value. -
LONG
A 64-bit signed integer value. -
FLOAT
A 32-bit floating point value. -
DOUBLE
A 64-bit floating point value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
mapFromInt
Gets the enum type from it's integer id. Used by native code.- Parameters:
value- The integer id.- Returns:
- The enum instance.
-
mapFromOnnxJavaType
Maps aOnnxJavaTypeinto a map value type. If it's not a valid map type returnINVALID.- Parameters:
type- The Java type.- Returns:
- The equivalent Map value type.
-