public enum WriteType extends Enum<WriteType>
| Enum Constant and Description |
|---|
CACHE_THROUGH |
MUST_CACHE |
THROUGH |
TRY_CACHE |
| Modifier and Type | Method and Description |
|---|---|
static WriteType |
getOpType(String op) |
int |
getValue() |
boolean |
isCache() |
boolean |
isMustCache() |
boolean |
isThrough() |
static WriteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteType MUST_CACHE
public static final WriteType TRY_CACHE
public static final WriteType CACHE_THROUGH
public static final WriteType THROUGH
public static WriteType[] values()
for (WriteType c : WriteType.values()) System.out.println(c);
public static WriteType 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 boolean isThrough()
public boolean isCache()
public boolean isMustCache()
public static WriteType getOpType(String op) throws IOException
IOExceptionCopyright © 2013. All rights reserved.