Module de.cuioss.test.generator
Package de.cuioss.test.generator.impl
Enum Class PrimitiveArrayGenerators
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveArrayGenerators>,Constable
Generates arrays of primitive types.
- Author:
- Oliver Wolff
-
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 TypeMethodDescriptionabstract Class<?>getType()abstract Objectnext()static PrimitiveArrayGeneratorsresolveForType(Class<?> primitiveType) Returns aPrimitiveArrayGeneratorsfor the given primitive type.static PrimitiveArrayGeneratorsReturns the enum constant of this class with the specified name.static PrimitiveArrayGenerators[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
Provides booleans -
BYTE
Provides bytes -
CHAR
Provides chars -
SHORT
Provides shorts -
INTEGER
Provides integers -
LONG
Provides longs -
FLOAT
Provides floats -
DOUBLE
Provides doubles
-
-
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
-
next
- Returns:
- an primitive array of the configured type, with the sizes 1-128
-
getType
- Returns:
- the type of the primitive
-
resolveForType
Returns aPrimitiveArrayGeneratorsfor the given primitive type.- Parameters:
primitiveType- must not be null and a primitive type.- Returns:
- the found
PrimitiveArrayGeneratorsor throws anIllegalStateExceptionif none could be found
-