- java.lang.Object
-
- java.lang.Enum<PrimitiveArrayType>
-
- org.refcodes.struct.PrimitiveArrayType
-
- All Implemented Interfaces:
Serializable
,Comparable<PrimitiveArrayType>
,org.refcodes.mixin.TypeAccessor
public enum PrimitiveArrayType extends Enum<PrimitiveArrayType> implements org.refcodes.mixin.TypeAccessor
ThePrimitiveArrayType
enumeration contains theClass
representation of the primitive array types.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T,B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getType()
static boolean
isPrimitiveArrayType(Class<?> aClass)
Tests whether the given class represents a primitive array type.static PrimitiveArrayType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PrimitiveArrayType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final PrimitiveArrayType BOOLEAN
-
BYTE
public static final PrimitiveArrayType BYTE
-
CHAR
public static final PrimitiveArrayType CHAR
-
DOUBLE
public static final PrimitiveArrayType DOUBLE
-
INT
public static final PrimitiveArrayType INT
-
FLOAT
public static final PrimitiveArrayType FLOAT
-
LONG
public static final PrimitiveArrayType LONG
-
SHORT
public static final PrimitiveArrayType SHORT
-
-
Method Detail
-
values
public static PrimitiveArrayType[] 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 (PrimitiveArrayType c : PrimitiveArrayType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveArrayType 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
-
getType
public Class<?> getType()
- Specified by:
getType
in interfaceorg.refcodes.mixin.TypeAccessor
-
isPrimitiveArrayType
public static boolean isPrimitiveArrayType(Class<?> aClass)
Tests whether the given class represents a primitive array type.- Parameters:
aClass
- The type to be tested.- Returns:
- True in case of being a primitive array type, else false.
-
-