Class ParameterList

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Parameter<?>>
de.fraunhofer.iese.mydata.policy.parameter.ParameterList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Parameter<?>>, Collection<Parameter<?>>, List<Parameter<?>>, RandomAccess

public class ParameterList extends ArrayList<Parameter<?>>
The Class ParameterList.
Author:
Fraunhofer IESE
See Also:
  • Constructor Details

    • ParameterList

      public ParameterList()
      Instantiates a new parameter list.
    • ParameterList

      public ParameterList(Collection<? extends Parameter<?>> params)
      Instantiates a new parameter list.
      Parameters:
      params - the params
    • ParameterList

      public ParameterList(Parameter<?>... params)
      Instantiates a new parameter list.
      Parameters:
      params - the params
  • Method Details

    • add

      public boolean add(Parameter<?> e)
      Specified by:
      add in interface Collection<Parameter<?>>
      Specified by:
      add in interface List<Parameter<?>>
      Overrides:
      add in class ArrayList<Parameter<?>>
    • addParameter

      public <T> void addParameter(String name, T value)
      Adds the parameter.
      Type Parameters:
      T - the generic type
      Parameters:
      name - the name
      value - the value
    • addParameter

      public <T> void addParameter(String name, T value, Type valueType)
      Adds the parameter.
      Type Parameters:
      T - the generic type
      Parameters:
      name - the name
      value - the value
      valueType - the value type
    • getParameterForName

      public Parameter<?> getParameterForName(String name)
      Gets the parameter for name.
      Parameters:
      name - the name
      Returns:
      the parameter for name
    • getParameterValue

      public <T> T getParameterValue(String name, Class<T> clazz)
      Gets the parameter value.
      Type Parameters:
      T - the generic type
      Parameters:
      name - the name
      clazz - the clazz
      Returns:
      the parameter value
    • getParameterValueForName

      public Object getParameterValueForName(String name)
      Gets the parameter value for name.
      Parameters:
      name - the name
      Returns:
      the parameter value for name
    • removeParameter

      public void removeParameter(String name)
      Removes the parameter.
      Parameters:
      name - the name
    • setParameters

      public void setParameters(ParameterList params)
      Sets the parameters.
      Parameters:
      params - the new parameters
    • toArray

      public Parameter<?>[] toArray()
      Specified by:
      toArray in interface Collection<Parameter<?>>
      Specified by:
      toArray in interface List<Parameter<?>>
      Overrides:
      toArray in class ArrayList<Parameter<?>>