public enum NumberEnum extends Enum<NumberEnum>
| Enum Constant and Description |
|---|
BIG_DECIMAL |
BIG_INTEGER |
BYTE |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
| Modifier and Type | Method and Description |
|---|---|
static Optional<NumberEnum> |
of(Class<?> clazz) |
static Optional<NumberEnum> |
of(Object object) |
static NumberEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberEnum BYTE
public static final NumberEnum SHORT
public static final NumberEnum INTEGER
public static final NumberEnum LONG
public static final NumberEnum FLOAT
public static final NumberEnum DOUBLE
public static final NumberEnum BIG_INTEGER
public static final NumberEnum BIG_DECIMAL
public static NumberEnum[] values()
for (NumberEnum c : NumberEnum.values()) System.out.println(c);
public static NumberEnum 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 static Optional<NumberEnum> of(Object object)
public static Optional<NumberEnum> of(Class<?> clazz)
Copyright © 2021. All rights reserved.