public static enum Primitive.Flavor extends Enum<Primitive.Flavor>
int),
a box type for a primitive (e.g. java.lang.Integer),
or something else.| Enum Constant and Description |
|---|
BOX
A type that boxes a primitive, e.g.
|
OBJECT
Neither a primitive nor a boxing type.
|
PRIMITIVE
A primitive type, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static Primitive.Flavor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Primitive.Flavor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Primitive.Flavor PRIMITIVE
int.public static final Primitive.Flavor BOX
Integer.public static final Primitive.Flavor OBJECT
public static Primitive.Flavor[] values()
for (Primitive.Flavor c : Primitive.Flavor.values()) System.out.println(c);
public static Primitive.Flavor valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2012-2021 Apache Software Foundation. All Rights Reserved.