Package org.apache.zookeeper
Enum MockZooKeeper.Op
- java.lang.Object
-
- java.lang.Enum<MockZooKeeper.Op>
-
- org.apache.zookeeper.MockZooKeeper.Op
-
- All Implemented Interfaces:
Serializable,Comparable<MockZooKeeper.Op>
- Enclosing class:
- MockZooKeeper
public static enum MockZooKeeper.Op extends Enum<MockZooKeeper.Op>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MockZooKeeper.OpvalueOf(String name)Returns the enum constant of this type with the specified name.static MockZooKeeper.Op[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE
public static final MockZooKeeper.Op CREATE
-
GET
public static final MockZooKeeper.Op GET
-
SET
public static final MockZooKeeper.Op SET
-
GET_CHILDREN
public static final MockZooKeeper.Op GET_CHILDREN
-
DELETE
public static final MockZooKeeper.Op DELETE
-
EXISTS
public static final MockZooKeeper.Op EXISTS
-
SYNC
public static final MockZooKeeper.Op SYNC
-
-
Method Detail
-
values
public static MockZooKeeper.Op[] 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 (MockZooKeeper.Op c : MockZooKeeper.Op.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MockZooKeeper.Op 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 nameNullPointerException- if the argument is null
-
-