public enum BrentSolutionType extends Enum<BrentSolutionType> implements Enumeration
| Enum Constant and Description |
|---|
ABOVE_OR_BELOW_ZERO
Indicates that the solution may lie below, on, or above zero.
|
ON_OR_ABOVE_ZERO
Indicates that the solution must lie on or above zero.
|
ON_OR_BELOW_ZERO
Indicates that the solution must lie on or below zero.
|
| Modifier and Type | Method and Description |
|---|---|
static BrentSolutionType |
getDefault()
Get the enum constant that is considered to be the default.
|
static BrentSolutionType |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static BrentSolutionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrentSolutionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrentSolutionType ON_OR_BELOW_ZERO
public static final BrentSolutionType ABOVE_OR_BELOW_ZERO
public static final BrentSolutionType ON_OR_ABOVE_ZERO
public static BrentSolutionType[] values()
for (BrentSolutionType c : BrentSolutionType.values()) System.out.println(c);
public static BrentSolutionType 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 nullpublic int getValue()
getValue in interface Enumeration@Nonnull public static BrentSolutionType getFromValue(int value)
value - a numeric value.@Nonnull public static BrentSolutionType getDefault()