public abstract class AbstractParameterizable extends Object implements Parameterizable
Modifier | Constructor and Description |
---|---|
protected |
AbstractParameterizable(Collection<String> names)
Simple constructor.
|
protected |
AbstractParameterizable(String... names)
Simple constructor.
|
Modifier and Type | Method and 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–2020 Hipparchus.org. All rights reserved.