public enum Digit extends Enum<Digit>
Enum Constant and Description |
---|
EIGHT |
FIVE |
FOUR |
NINE |
ONE |
SEVEN |
SIX |
THREE |
TWO |
ZERO |
Modifier and Type | Method and Description |
---|---|
static Digit |
fromValue(int i) |
int |
getValue() |
static Digit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Digit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Digit ZERO
public static final Digit ONE
public static final Digit TWO
public static final Digit THREE
public static final Digit FOUR
public static final Digit FIVE
public static final Digit SIX
public static final Digit SEVEN
public static final Digit EIGHT
public static final Digit NINE
public static Digit[] values()
for (Digit c : Digit.values()) System.out.println(c);
public static Digit 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 int getValue()
public static Digit fromValue(int i)
i
- the digit; must be between zero and nine.Copyright © 2003–2016 Community Z Tools Project. All rights reserved.