de.jstacs.parameters
Class ParameterSet.ParameterList
java.lang.Object
de.jstacs.AnnotatedEntityList<Parameter>
de.jstacs.parameters.ParameterSet.ParameterList
- Enclosing class:
- ParameterSet
protected class ParameterSet.ParameterList
- extends AnnotatedEntityList<Parameter>
Class for a AnnotatedEntityList that automatically sets
the Parameter.parent field to the enclosing ParameterSet.
- Author:
- Jan Grau
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterSet.ParameterList
public ParameterSet.ParameterList()
ParameterSet.ParameterList
public ParameterSet.ParameterList(int initialCapacity)
- Parameters:
initialCapacity - the initial capacity of the ParameterSet.ParameterList
set
public void set(int idx,
Parameter p)
- Description copied from class:
AnnotatedEntityList
- Replaces the
AnnotatedEntity at index idx with
the AnnotatedEntity entity/code>
- Overrides:
set in class AnnotatedEntityList<Parameter>
- Parameters:
idx - the indexp - the new AnnotatedEntity at index idx
add
public void add(int idx,
Parameter p)
- Description copied from class:
AnnotatedEntityList
- Adds the
AnnotatedEntity entity
at index idx to the list. If entities contains AnnotatedEntitys with duplicate names,
or an AnnotatedEntity with identical name already exists in the list,
an IllegalArgumentException is thrown.
- Overrides:
add in class AnnotatedEntityList<Parameter>
- Parameters:
idx - the indexp - the added AnnotatedEntity- See Also:
List.add(int, Object)
add
public void add(Parameter... p)
- Description copied from class:
AnnotatedEntityList
- Adds all
AnnotatedEntitys in entities
to the list. If entities contains AnnotatedEntitys with duplicate names,
or an AnnotatedEntity with identical name already exists in the list,
an IllegalArgumentException is thrown.
- Overrides:
add in class AnnotatedEntityList<Parameter>
- Parameters:
p - the added AnnotatedEntity