Package numpy.core
Enum TypeDescriptor.Kind
- java.lang.Object
-
- java.lang.Enum<TypeDescriptor.Kind>
-
- numpy.core.TypeDescriptor.Kind
-
- All Implemented Interfaces:
Serializable,Comparable<TypeDescriptor.Kind>
- Enclosing class:
- TypeDescriptor
public static enum TypeDescriptor.Kind extends Enum<TypeDescriptor.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANCOMPLEX_FLOATFLOATINTEGEROBJECTSTRINGUNICODEUNSIGNED_INTEGERVOID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeDescriptor.KindforChar(char c)static TypeDescriptor.KindvalueOf(String name)Returns the enum constant of this type with the specified name.static TypeDescriptor.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final TypeDescriptor.Kind BOOLEAN
-
INTEGER
public static final TypeDescriptor.Kind INTEGER
-
UNSIGNED_INTEGER
public static final TypeDescriptor.Kind UNSIGNED_INTEGER
-
FLOAT
public static final TypeDescriptor.Kind FLOAT
-
COMPLEX_FLOAT
public static final TypeDescriptor.Kind COMPLEX_FLOAT
-
OBJECT
public static final TypeDescriptor.Kind OBJECT
-
STRING
public static final TypeDescriptor.Kind STRING
-
UNICODE
public static final TypeDescriptor.Kind UNICODE
-
VOID
public static final TypeDescriptor.Kind VOID
-
-
Method Detail
-
values
public static TypeDescriptor.Kind[] 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 (TypeDescriptor.Kind c : TypeDescriptor.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeDescriptor.Kind valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forChar
public static TypeDescriptor.Kind forChar(char c)
-
-