public enum NumberType extends Enum<NumberType>
Java class for NumberType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="NumberType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Big Integer"/> <enumeration value="Byte"/> <enumeration value="Decimal"/> <enumeration value="Double"/> <enumeration value="Float"/> <enumeration value="Integer"/> <enumeration value="Long"/> <enumeration value="Short"/> </restriction> </simpleType>
Enum Constant and Description |
---|
BIG_INTEGER |
BYTE |
DECIMAL |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
Modifier and Type | Method and Description |
---|---|
static NumberType |
fromValue(String v) |
String |
value() |
static NumberType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberType BIG_INTEGER
public static final NumberType BYTE
public static final NumberType DECIMAL
public static final NumberType DOUBLE
public static final NumberType FLOAT
public static final NumberType INTEGER
public static final NumberType LONG
public static final NumberType SHORT
public static NumberType[] values()
for (NumberType c : NumberType.values()) System.out.println(c);
public static NumberType 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 value()
public static NumberType fromValue(String v)
Copyright © 2019 JBoss by Red Hat. All rights reserved.