public enum MagicNumbers extends Enum<MagicNumbers>
| Enum Constant and Description |
|---|
SEVENHUNDREDSIXTYEIGHT
The sevenhundredsixtyeight.
|
SEVENTEEN
The seventeen.
|
TEN
The ten.
|
THIRTYONE
The thirtyone.
|
THOUSAND
The thousand.
|
THOUSANDTWENTYFOUR
The thousandtwentyfour.
|
TWOHUNDREDFIFTYSIX
The twohundredfiftysix.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
number
The number.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNumber()
Gets the number.
|
static MagicNumbers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MagicNumbers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MagicNumbers TEN
public static final MagicNumbers SEVENTEEN
public static final MagicNumbers THIRTYONE
public static final MagicNumbers TWOHUNDREDFIFTYSIX
public static final MagicNumbers SEVENHUNDREDSIXTYEIGHT
public static final MagicNumbers THOUSAND
public static final MagicNumbers THOUSANDTWENTYFOUR
public static MagicNumbers[] values()
for (MagicNumbers c : MagicNumbers.values()) System.out.println(c);
public static MagicNumbers 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 final int getNumber()
Copyright © 2016. All rights reserved.