Package adams.data.conversion
Enum ByteArrayToPrimitiveArray.PrimitiveType
- java.lang.Object
-
- java.lang.Enum<ByteArrayToPrimitiveArray.PrimitiveType>
-
- adams.data.conversion.ByteArrayToPrimitiveArray.PrimitiveType
-
- All Implemented Interfaces:
Serializable
,Comparable<ByteArrayToPrimitiveArray.PrimitiveType>
- Enclosing class:
- ByteArrayToPrimitiveArray
public static enum ByteArrayToPrimitiveArray.PrimitiveType extends Enum<ByteArrayToPrimitiveArray.PrimitiveType>
The type of primitive array to generate.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteArrayToPrimitiveArray.PrimitiveType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ByteArrayToPrimitiveArray.PrimitiveType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAR
public static final ByteArrayToPrimitiveArray.PrimitiveType CHAR
-
SHORT
public static final ByteArrayToPrimitiveArray.PrimitiveType SHORT
-
INT
public static final ByteArrayToPrimitiveArray.PrimitiveType INT
-
LONG
public static final ByteArrayToPrimitiveArray.PrimitiveType LONG
-
FLOAT
public static final ByteArrayToPrimitiveArray.PrimitiveType FLOAT
-
DOUBLE
public static final ByteArrayToPrimitiveArray.PrimitiveType DOUBLE
-
-
Method Detail
-
values
public static ByteArrayToPrimitiveArray.PrimitiveType[] 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 (ByteArrayToPrimitiveArray.PrimitiveType c : ByteArrayToPrimitiveArray.PrimitiveType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteArrayToPrimitiveArray.PrimitiveType 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
-
-