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