public enum ReplicateTo extends Enum<ReplicateTo>
Enum Constant and Description |
---|
ONE
Replicate to at least one node.
|
THREE
Replicate to at least three nodes.
|
TWO
Replicate to at least two nodes.
|
ZERO
Replicate to at least zero nodes.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static ReplicateTo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicateTo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicateTo ZERO
public static final ReplicateTo ONE
public static final ReplicateTo TWO
public static final ReplicateTo THREE
public static ReplicateTo[] values()
for (ReplicateTo c : ReplicateTo.values()) System.out.println(c);
public static ReplicateTo 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()
Copyright © 2018. All rights reserved.