public enum OpMode extends Enum<OpMode>
| Modifier and Type | Method and Description |
|---|---|
static OpMode |
from(String op) |
String |
getOp() |
boolean |
isApplicable(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(Map source,
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(String op) |
String |
toString() |
static OpMode |
valueOf(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
public static OpMode[] values()
for (OpMode c : OpMode.values()) System.out.println(c);
public static OpMode 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 String getOp()
public boolean isApplicable(Map source, String key)
public boolean isApplicable(List source, int reqIndex, int origSize)
public static boolean isValid(String op)
Copyright © 2023. All rights reserved.