|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.algorithm.Parameter
public class Parameter
Defines a parameter as an association between a String and an Object.
Nested Class Summary | |
---|---|
static class |
Parameter.ParametersProcessor
Defines the object which will process parameters. |
Constructor Summary | |
---|---|
Parameter(String key,
Object value)
Build a new parameter. |
Method Summary | ||
---|---|---|
String |
getKey()
Get the key of this parameter. |
|
|
getValue()
Get the value of this parameter. |
|
static Parameter |
parameter(String key,
Object value)
Shortcut for "new Parameter(key,value)". |
|
static void |
processParameters(Object env,
Parameter... params)
Process parameters. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parameter(String key, Object value)
key
- value
- Method Detail |
---|
public static final Parameter parameter(String key, Object value)
key
- key of the parametervalue
- value of the parameter
public static void processParameters(Object env, Parameter... params) throws InvalidParameterException, MissingParameterException
env
- object to set attributesparams
- parameters
InvalidParameterException
MissingParameterException
public String getKey()
public <T> T getValue()
T
- type asked for the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |