|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IParameterSet
Represents a set of parameters.
| Method Summary | ||
|---|---|---|
IParameterSet |
combine(IParameterSet other)
Combines this parameter set with another set and returns the resulting set. |
|
|
contains(Class<T> paramType)
Determines if this set contains the given parameter. |
|
boolean |
isEmpty()
Checks whether this parameter set is empty. |
|
Iterator<IParameter<?>> |
iterator()
|
|
String |
name()
Gets the name of this parameter set. |
|
|
optionalParameter(Class<T> paramType)
Gets the parameter with the specified name. |
|
|
optionalValue(Class<T> paramType,
W defaultValue)
Gets the parameter with the specified name. |
|
int |
paramCount()
Gets the number of parameters in the set. |
|
|
requiredParameter(Class<T> paramType)
Gets the parameter with the specified name. |
|
|
requiredValue(Class<T> paramType)
Gets the parameter with the specified name. |
|
| Method Detail |
|---|
String name()
<T extends IParameter<?>> T optionalParameter(Class<T> paramType)
T - parameter typeparamType - The parameter type class object.
<V,W extends V,T extends IParameter<V>> V optionalValue(Class<T> paramType,
W defaultValue)
V - value supertypeW - value typeT - parameter typeparamType - The parameter type class object.defaultValue - The default value which is returned when no parameter was
found.
<T extends IParameter<?>> T requiredParameter(Class<T> paramType)
T - parameter typeparamType - The parameter type class object.
NullPointerException - if paramType is null
NoSuchElementException - if the required parameter does not exists in the set<V,T extends IParameter<V>> V requiredValue(Class<T> paramType)
T - parameter typeV - value typeparamType - The parameter type class object.
NullPointerException - if paramType is null
NoSuchElementException - if the required parameter does not exists in the set<T extends IParameter<?>> boolean contains(Class<T> paramType)
T - parameter typeparamType - The parameter type class object.
boolean isEmpty()
Iterator<IParameter<?>> iterator()
iterator in interface Iterable<IParameter<?>>IParameterSet combine(IParameterSet other)
other - The other set
int paramCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||