|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.ode.AbstractParameterizable
public abstract class AbstractParameterizable
This abstract class provides boilerplate parameters list.
| Constructor Summary | |
|---|---|
protected |
AbstractParameterizable(Collection<String> names)
Simple constructor. |
protected |
AbstractParameterizable(String... names)
Simple constructor. |
| Method Summary | |
|---|---|
void |
complainIfNotSupported(String name)
Check if a parameter is supported and throw an IllegalArgumentException if not. |
Collection<String> |
getParametersNames()
Get the names of the supported parameters. |
boolean |
isSupported(String name)
Check if a parameter is supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractParameterizable(String... names)
names - names of the supported parametersprotected AbstractParameterizable(Collection<String> names)
names - names of the supported parameters| Method Detail |
|---|
public Collection<String> getParametersNames()
getParametersNames in interface ParameterizableParameterizable.isSupported(String)public boolean isSupported(String name)
Supported parameters are those listed by Parameterizable.getParametersNames().
isSupported in interface Parameterizablename - parameter name to check
Parameterizable.getParametersNames()
public void complainIfNotSupported(String name)
throws UnknownParameterException
name - name of the parameter to check
UnknownParameterException - if the parameter is not supportedisSupported(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||