Class ModifierList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Modifier>
-
- de.fraunhofer.iese.mydata.policy.parameter.ModifierList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Modifier>
,Collection<Modifier>
,List<Modifier>
,RandomAccess
public class ModifierList extends ArrayList<Modifier>
The Class ModifierList.- Author:
- Fraunhofer IESE
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ModifierList()
Instantiates a new modifier list.ModifierList(Modifier... params)
Instantiates a new modifier list.ModifierList(Collection<? extends Modifier> params)
Instantiates a new modifier list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Modifier e)
<T> void
addParameter(String name)
Adds the parameter.Modifier
getParameterForName(String name)
Gets the parameter for name.void
removeParameter(String name)
Removes the parameter.void
setParameters(ModifierList params)
Sets the parameters.Modifier[]
toArray()
-
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, 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.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, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
ModifierList
public ModifierList()
Instantiates a new modifier list.
-
ModifierList
public ModifierList(Collection<? extends Modifier> params)
Instantiates a new modifier list.- Parameters:
params
- the params
-
ModifierList
public ModifierList(Modifier... params)
Instantiates a new modifier list.- Parameters:
params
- the params
-
-
Method Detail
-
add
public boolean add(Modifier e)
-
addParameter
public <T> void addParameter(String name)
Adds the parameter.- Type Parameters:
T
- the generic type- Parameters:
name
- the name
-
getParameterForName
public Modifier getParameterForName(String name)
Gets the parameter for name.- Parameters:
name
- the name- Returns:
- the parameter for name
-
removeParameter
public void removeParameter(String name)
Removes the parameter.- Parameters:
name
- the name
-
setParameters
public void setParameters(ModifierList params)
Sets the parameters.- Parameters:
params
- the new parameters
-
-