com.basho.riak.client.cap
Enum Quora

java.lang.Object
  extended by java.lang.Enum<Quora>
      extended by 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

Enum Constant Summary
ALL
           
DEFAULT
           
INTEGER
           
ONE
           
QUORUM
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.