|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.api.ParameterList
public final class ParameterList
Helper class for handling parameters.
| Constructor Summary | |
|---|---|
ParameterList()
|
|
| Method Summary | ||
|---|---|---|
|
addParameter(Parameter<T> parameter)
Adds a new parameter to this compound. |
|
|
addParameter(String name,
T value)
Adds a new parameter to this compound. |
|
Parameter<?> |
getParameter(String name)
Gets the parameter with the specified name. |
|
boolean |
hasParameter(String aParameter)
Checks whether the compound contains a value for a given parameter. |
|
boolean |
hasSameDataAs(Object obj)
|
|
Iterator<Parameter<?>> |
iterator()
|
|
void |
removeParameter(String name)
Removes a parameter from the parameter list. |
|
int |
size()
Returns the size of this parameter list. |
|
String |
toString()
|
|
Parameter<?> |
tryGetParameter(String name)
Tries to get the parameter with the specified name. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterList()
| Method Detail |
|---|
public <T> Parameter<T> addParameter(Parameter<T> parameter)
T - The type of the parameter.parameter - The parameter to add.
public <T> Parameter<T> addParameter(String name,
T value)
T - The type of the parameter.name - The name of the parameter.value - The value of the parameter.
public Parameter<?> getParameter(String name)
name - The name of the parameter. null is not allowed.
IllegalArgumentException - if parameter not foundpublic Parameter<?> tryGetParameter(String name)
name - The name of the parameter. null is not allowed.
public void removeParameter(String name)
name - The name of the parameter. null is not allowed.public String toString()
toString in class Objectpublic int size()
public Iterator<Parameter<?>> iterator()
iterator in interface Iterable<Parameter<?>>public boolean hasParameter(String aParameter)
aParameter - the name of the parameter
true, if the parameter is contained in the
compound's parameter listfalse, in any other casepublic boolean hasSameDataAs(Object obj)
hasSameDataAs in interface com.kuka.common.IDataEquatable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||