Parameterizable
public abstract class AbstractParameterizable extends Object implements Parameterizable
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractParameterizable(String... names) |
Simple constructor.
|
protected |
AbstractParameterizable(Collection<String> names) |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
complainIfNotSupported(String name) |
Check if a parameter is supported and throw an IllegalArgumentException if not.
|
List<String> |
getParametersNames() |
Get the names of the supported parameters.
|
boolean |
isSupported(String name) |
Check if a parameter is supported.
|
protected AbstractParameterizable(String... names)
names
- names of the supported parametersprotected AbstractParameterizable(Collection<String> names)
names
- names of the supported parameterspublic List<String> getParametersNames()
getParametersNames
in interface Parameterizable
Parameterizable.isSupported(String)
public boolean isSupported(String name)
Supported parameters are those listed by Parameterizable.getParametersNames()
.
isSupported
in interface Parameterizable
name
- parameter name to checkParameterizable.getParametersNames()
public void complainIfNotSupported(String name) throws MathIllegalArgumentException
name
- name of the parameter to checkMathIllegalArgumentException
- if the parameter is not supportedisSupported(String)
Copyright © 2016–2018 Hipparchus.org. All rights reserved.