Class ModifierList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Modifier>,Collection<Modifier>,List<Modifier>,RandomAccess
The Class ModifierList.
- Author:
- Fraunhofer IESE
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new modifier list.ModifierList(Modifier... params) Instantiates a new modifier list.ModifierList(Collection<? extends Modifier> params) Instantiates a new modifier list. -
Method Summary
Modifier and TypeMethodDescriptionboolean<T> voidaddParameter(String name) Adds the parameter.getParameterForName(String name) Gets the parameter for name.voidremoveParameter(String name) Removes the parameter.voidsetParameters(ModifierList params) Sets the parameters.Modifier[]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, trimToSizeMethods inherited from class java.util.AbstractList
equals, hashCodeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, streamMethods inherited from interface java.util.List
containsAll, equals, hashCode
-
Constructor Details
-
ModifierList
public ModifierList()Instantiates a new modifier list. -
ModifierList
Instantiates a new modifier list.- Parameters:
params- the params
-
ModifierList
Instantiates a new modifier list.- Parameters:
params- the params
-
-
Method Details
-
add
-
addParameter
Adds the parameter.- Type Parameters:
T- the generic type- Parameters:
name- the name
-
getParameterForName
Gets the parameter for name.- Parameters:
name- the name- Returns:
- the parameter for name
-
removeParameter
Removes the parameter.- Parameters:
name- the name
-
setParameters
Sets the parameters.- Parameters:
params- the new parameters
-
toArray
-