public static enum AbstractParameterType.Check extends Enum<AbstractParameterType.Check>
| Enum Constant and Description |
|---|
ATLEASTONE
Checks for ≥1.
|
NEGATIVE
Checks for <0.
|
NEGATIVEZERO
Checks for ≤0.
|
NONZERO
Checks for ≠0.
|
POSITIVE
Checks for >0.
|
POSITIVEZERO
Checks for ≥0.
|
UNITINTERVAL
Checks for range [0...1].
|
| Modifier and Type | Method and Description |
|---|---|
(package private) String |
failMessage()
Returns a message for value failure, pointing to a parameter using '%s'.
|
(package private) abstract boolean |
fails(double value)
Checks whether the value fails to comply with constraints.
|
static AbstractParameterType.Check |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractParameterType.Check[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractParameterType.Check POSITIVE
public static final AbstractParameterType.Check NEGATIVE
public static final AbstractParameterType.Check POSITIVEZERO
public static final AbstractParameterType.Check NEGATIVEZERO
public static final AbstractParameterType.Check NONZERO
public static final AbstractParameterType.Check UNITINTERVAL
public static final AbstractParameterType.Check ATLEASTONE
public static AbstractParameterType.Check[] values()
for (AbstractParameterType.Check c : AbstractParameterType.Check.values()) System.out.println(c);
public static AbstractParameterType.Check valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullString failMessage()
abstract boolean fails(double value)
value - Value to check.Copyright © 2014–2017 Delft University of Technology. All rights reserved.