com.basho.riak.client.cap
Enum Quora
java.lang.Object
java.lang.Enum<Quora>
com.basho.riak.client.cap.Quora
- All Implemented Interfaces:
- Serializable, Comparable<Quora>
public enum Quora
- extends Enum<Quora>
An enum that models the set of symbolic quora.
- Author:
- russell
ONE
public static final Quora ONE
QUORUM
public static final Quora QUORUM
ALL
public static final Quora ALL
DEFAULT
public static final Quora DEFAULT
INTEGER
public static final Quora INTEGER
values
public static Quora[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Quora c : Quora.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Quora valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getValue
public int getValue()
- Returns:
- the value
getName
public String getName()
- Returns:
- the name
fromString
public static Quora fromString(String name)
- Attempt to return a
Quora
for the given name
- Parameters:
name
-
- Returns:
- a
Quora
for name
- Throws:
IllegalArgumentException
- is name
is not a valid Quora.
Copyright © 2012. All Rights Reserved.