public enum OpMode extends java.lang.Enum<OpMode>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
op
Identifier OP prefix that is defined in SPEC
|
private static java.util.Map<java.lang.String,OpMode> |
opModeMap
Static validity checker and instance getter from given op String
|
Modifier and Type | Method and Description |
---|---|
static OpMode |
from(java.lang.String op) |
java.lang.String |
getOp() |
boolean |
isApplicable(java.util.List source,
int reqIndex,
int origSize)
Given a source list and a input index and original size of the list (when passed in as input)
returns true if it is ok to go ahead with write operation given a specific opMode
|
boolean |
isApplicable(java.util.Map source,
java.lang.String key)
Given a source map and a input key returns true if it is ok to go ahead with
write operation given a specific opMode
|
static boolean |
isValid(java.lang.String op) |
java.lang.String |
toString() |
static OpMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OpMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpMode OVERWRITR
public static final OpMode DEFAULTR
public static final OpMode DEFINER
private java.lang.String op
private static java.util.Map<java.lang.String,OpMode> opModeMap
public static OpMode[] values()
for (OpMode c : OpMode.values()) System.out.println(c);
public static OpMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getOp()
public java.lang.String toString()
toString
in class java.lang.Enum<OpMode>
public boolean isApplicable(java.util.Map source, java.lang.String key)
public boolean isApplicable(java.util.List source, int reqIndex, int origSize)
public static boolean isValid(java.lang.String op)
public static OpMode from(java.lang.String op)