public enum Quora extends Enum<Quora>
Modifier and Type | Method and Description |
---|---|
static Quora |
fromString(String name)
Attempt to return a
Quora for the given name |
String |
getName() |
int |
getValue() |
static Quora |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Quora[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Quora ONE
public static final Quora QUORUM
public static final Quora ALL
public static final Quora DEFAULT
public static final Quora INTEGER
public static Quora[] values()
for (Quora c : Quora.values()) System.out.println(c);
public static Quora 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 String getName()
public static Quora fromString(String name)
Quora
for the given name
name
- Quora
for name
IllegalArgumentException
- is name
is not a valid Quora.Copyright © 2013. All Rights Reserved.