public abstract class RemovrSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MatchablePathElement |
pathElement |
Constructor and Description |
---|
RemovrSpec(java.lang.String rawJsonKey) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<java.lang.Integer> |
applyToList(java.util.List<java.lang.Object> inputList)
Build a list of indices to remove from the input list, using the pathElement
from the Spec.
|
abstract java.util.List<java.lang.String> |
applyToMap(java.util.Map<java.lang.String,java.lang.Object> inputMap)
Build a list of keys to remove from the input map, using the pathElement
from the Spec.
|
protected java.lang.Integer |
getNonNegativeIntegerFromLiteralPathElement()
Try to "interpret" the spec String value as a non-negative integer.
|
static PathElement |
parse(java.lang.String key) |
protected final MatchablePathElement pathElement
public static PathElement parse(java.lang.String key)
protected java.lang.Integer getNonNegativeIntegerFromLiteralPathElement()
public abstract java.util.List<java.lang.Integer> applyToList(java.util.List<java.lang.Object> inputList)
public abstract java.util.List<java.lang.String> applyToMap(java.util.Map<java.lang.String,java.lang.Object> inputMap)