public enum Primitive extends Enum<Primitive>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
SHORT |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getWrapperName() |
boolean |
isBooleanPrimitive() |
boolean |
isBytePrimitive() |
boolean |
isCharPrimitive() |
boolean |
isDoublePrimitive() |
boolean |
isFloatingPoint() |
boolean |
isFloatPrimitive() |
boolean |
isShortPrimitive() |
static Primitive |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Primitive[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Primitive INT
public static final Primitive FLOAT
public static final Primitive DOUBLE
public static final Primitive LONG
public static final Primitive SHORT
public static final Primitive BYTE
public static final Primitive CHAR
public static final Primitive BOOLEAN
public final String type
public static Primitive[] values()
for (Primitive c : Primitive.values()) System.out.println(c);
public static Primitive 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 nullpublic String getName()
public String getWrapperName()
public boolean isFloatingPoint()
public boolean isBytePrimitive()
public boolean isBooleanPrimitive()
public boolean isCharPrimitive()
public boolean isShortPrimitive()
public boolean isFloatPrimitive()
public boolean isDoublePrimitive()
Copyright © 2004–2016. All rights reserved.