public final class Parameters extends Object implements Cloneable, Serializable
Traversal
.Constructor and Description |
---|
Parameters() |
Modifier and Type | Method and Description |
---|---|
Parameters |
clone() |
boolean |
contains(Object key)
Checks for existence of key in parameter set.
|
<E> List<E> |
get(Object key,
Supplier<E> defaultValue)
Gets the value of a key and if that key isn't present returns the default value from the
Supplier . |
<S,E> List<E> |
get(Traverser.Admin<S> traverser,
Object key,
Supplier<E> defaultValue) |
<S> Object[] |
getKeyValues(Traverser.Admin<S> traverser,
Object... exceptKeys) |
Map<Object,List<Object>> |
getRaw(Object... exceptKeys)
Gets an immutable set of the parameters without evaluating them in the context of a
Traverser as
is done in getKeyValues(Traverser.Admin, Object...) . |
<S,E> List<Traversal.Admin<S,E>> |
getTraversals() |
int |
hashCode() |
void |
integrateTraversals(TraversalParent step) |
Object |
remove(Object key)
Remove a key from the parameter set.
|
void |
rename(Object oldKey,
Object newKey)
Renames a key in the parameter set.
|
void |
set(Object... keyValues)
Set parameters given key/value pairs.
|
String |
toString() |
public boolean contains(Object key)
key
- the key to checktrue
if the key is present and false
otherwisepublic void rename(Object oldKey, Object newKey)
oldKey
- the key to renamenewKey
- the new name of the keypublic <S,E> List<E> get(Traverser.Admin<S> traverser, Object key, Supplier<E> defaultValue)
public <E> List<E> get(Object key, Supplier<E> defaultValue)
Supplier
.key
- the key to retrievedefaultValue
- the default value generatorpublic Object remove(Object key)
key
- the key to removepublic <S> Object[] getKeyValues(Traverser.Admin<S> traverser, Object... exceptKeys)
public Map<Object,List<Object>> getRaw(Object... exceptKeys)
Traverser
as
is done in getKeyValues(Traverser.Admin, Object...)
.exceptKeys
- keys to not include in the returned Map
public void set(Object... keyValues)
public void integrateTraversals(TraversalParent step)
public <S,E> List<Traversal.Admin<S,E>> getTraversals()
public Parameters clone()
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.