- All Implemented Interfaces:
Serializable
,Comparable<PrimitiveArrayType>
,Constable
,org.refcodes.mixin.TypeAccessor
public enum PrimitiveArrayType
extends Enum<PrimitiveArrayType>
implements org.refcodes.mixin.TypeAccessor
The
PrimitiveArrayType
enumeration contains the Class
representation of the primitive array types.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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> -
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getType()
static boolean
isPrimitiveArrayType
(Class<?> aClass) Tests whether the given class represents a primitive array type.static PrimitiveArrayType
Returns the enum constant of this class with the specified name.static PrimitiveArrayType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
BYTE
-
CHAR
-
DOUBLE
-
INT
-
FLOAT
-
LONG
-
SHORT
-
-
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
-
getType
- Specified by:
getType
in interfaceorg.refcodes.mixin.TypeAccessor
-
isPrimitiveArrayType
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.
-