public class ParamMap
extends Object
implements scala.Serializable
Constructor and Description |
---|
ParamMap()
Creates an empty param map.
|
ParamMap(scala.collection.mutable.Map<Param<Object>,Object> map) |
Modifier and Type | Method and Description |
---|---|
<T> T |
apply(Param<T> param)
Gets the value of the input param or its default value if it does not exist.
|
boolean |
contains(Param<?> param)
Checks whether a parameter is explicitly specified.
|
ParamMap |
copy()
Make a copy of this param map.
|
static ParamMap |
empty()
Returns an empty param map.
|
ParamMap |
filter(Params parent)
Filters this param map for the given parent.
|
<T> scala.Option<T> |
get(Param<T> param)
Optionally returns the value associated with a param or its default.
|
<T> ParamMap |
put(Param<T> param,
T value)
Puts a (param, value) pair (overwrites if the input param exists).
|
ParamMap |
put(ParamPair<?>... paramPairs)
Puts a list of param pairs (overwrites if the input params exists).
|
ParamMap |
put(scala.collection.Seq<ParamPair<?>> paramPairs)
Puts a list of param pairs (overwrites if the input params exists).
|
scala.collection.Seq<ParamPair<?>> |
toSeq()
Converts this param map to a sequence of param pairs.
|
String |
toString() |
public ParamMap(scala.collection.mutable.Map<Param<Object>,Object> map)
public ParamMap()
public static ParamMap empty()
public ParamMap put(ParamPair<?>... paramPairs)
public <T> ParamMap put(Param<T> param, T value)
public ParamMap put(scala.collection.Seq<ParamPair<?>> paramPairs)
public <T> scala.Option<T> get(Param<T> param)
public <T> T apply(Param<T> param)
public boolean contains(Param<?> param)
public ParamMap copy()
public String toString()
toString
in class Object
public scala.collection.Seq<ParamPair<?>> toSeq()