Class ParameterList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Parameter<?>>
,Collection<Parameter<?>>
,List<Parameter<?>>
,RandomAccess
The Class ParameterList.
- Author:
- Fraunhofer IESE
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionInstantiates a new parameter list.ParameterList
(Parameter<?>... params) Instantiates a new parameter list.ParameterList
(Collection<? extends Parameter<?>> params) Instantiates a new parameter list. -
Method Summary
Modifier and TypeMethodDescriptionboolean
<T> void
addParameter
(String name, T value) Adds the parameter.<T> void
addParameter
(String name, T value, Type valueType) Adds the parameter.Parameter<?>
getParameterForName
(String name) Gets the parameter for name.<T> T
getParameterValue
(String name, Class<T> clazz) Gets the parameter value.Gets the parameter value for name.void
removeParameter
(String name) Removes the parameter.void
setParameters
(ParameterList params) Sets the parameters.Parameter<?>[]
toArray()
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, trimToSize
Methods inherited from class java.util.AbstractList
equals, hashCode
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream
Methods inherited from interface java.util.List
containsAll, equals, hashCode
-
Constructor Details
-
ParameterList
public ParameterList()Instantiates a new parameter list. -
ParameterList
Instantiates a new parameter list.- Parameters:
params
- the params
-
ParameterList
Instantiates a new parameter list.- Parameters:
params
- the params
-
-
Method Details
-
add
-
addParameter
Adds the parameter.- Type Parameters:
T
- the generic type- Parameters:
name
- the namevalue
- the value
-
addParameter
Adds the parameter.- Type Parameters:
T
- the generic type- Parameters:
name
- the namevalue
- the valuevalueType
- the value type
-
getParameterForName
Gets the parameter for name.- Parameters:
name
- the name- Returns:
- the parameter for name
-
getParameterValue
Gets the parameter value.- Type Parameters:
T
- the generic type- Parameters:
name
- the nameclazz
- the clazz- Returns:
- the parameter value
-
getParameterValueForName
Gets the parameter value for name.- Parameters:
name
- the name- Returns:
- the parameter value for name
-
removeParameter
Removes the parameter.- Parameters:
name
- the name
-
setParameters
Sets the parameters.- Parameters:
params
- the new parameters
-
toArray
-