public final class Params<T> extends Object implements Iterable<T>, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
get(int index)
Return the parameter with the given
index. |
String |
getName()
Return the name of the parameter collection.
|
int |
hashCode() |
Iterator<T> |
iterator() |
static <T> Params<T> |
of(String name,
ISeq<T> params)
Return a new parameters object.
|
int |
size()
Return the number of parameters this collection contains.
|
Stream<T> |
stream()
Return the parameter values as stream.
|
String |
toString() |
ISeq<T> |
values()
Return the parameter values.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic String getName()
public T get(int index)
index.index - the parameter indexindexIndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size())public int size()
public Stream<T> stream()
public static <T> Params<T> of(String name, ISeq<T> params)
T - the parameter typename - the name of the parametersparams - the actual parametersNullPointerException - if one of the parameters is null© 2007-2017 Franz Wilhelmstötter (2017-04-27 23:07)