|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<Macros.Doubler>
Macros.Doubler
public static enum Macros.Doubler
Convert arrays
with various component types
to individual primitive double
values.
Enum Constant Summary | |
---|---|
BOOLEAN
boolean[] |
|
BYTE
byte[] |
|
CHAR
char[] |
|
DOUBLE
double[] |
|
FLOAT
float[] |
|
INT
int[] |
|
LONG
long[] |
|
NUMBER
AtomicInteger[] | AtomicLong[] | BigDecimal[] | BigInteger[] | Byte[] | Double[] | Float[] | Integer[] | Long[] | Short[] |
|
SHORT
short[] |
|
STRING
String[] and any other component type where toString() can be passed to Double .parseDouble() . |
Field Summary | |
---|---|
Class<?> |
clazz
A particular Doubler is designed to convert arrays with component type assignable from this type. |
Method Summary | |
---|---|
static Macros.Doubler |
forArray(Object array)
Choose the appropriate Doubler for the specified array. |
double |
get(Object array,
int index)
Convert the element of the specified array at the specified index to a primitive double value. |
static Macros.Doubler |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Macros.Doubler[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Macros.Doubler BOOLEAN
boolean[]
public static final Macros.Doubler BYTE
byte[]
public static final Macros.Doubler CHAR
char[]
public static final Macros.Doubler DOUBLE
double[]
public static final Macros.Doubler FLOAT
float[]
public static final Macros.Doubler INT
int[]
public static final Macros.Doubler LONG
long[]
public static final Macros.Doubler SHORT
short[]
public static final Macros.Doubler NUMBER
AtomicInteger[]
| AtomicLong[]
| BigDecimal[]
| BigInteger[]
| Byte[]
| Double[]
| Float[]
| Integer[]
| Long[]
| Short[]
public static final Macros.Doubler STRING
String[]
and any other component type where toString()
can be passed to Double
.parseDouble()
.
Field Detail |
---|
public final Class<?> clazz
Doubler
is designed to convert arrays
with component type
assignable from
this type.
Method Detail |
---|
public static Macros.Doubler[] values()
for (Macros.Doubler c : Macros.Doubler.values()) System.out.println(c);
public static Macros.Doubler valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Macros.Doubler forArray(Object array)
Doubler
for the specified array.
public double get(Object array, int index)
double
value.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |