Interface DoubleConstraint
- All Superinterfaces:
Constraint<Double>
Represents a
Constraint
of the Double
type.- Since:
- 1.0.0.0
- Author:
- creatorfromhell
-
Method Summary
Methods inherited from interface net.tnemc.menu.core.constraints.Constraint
asString, defaultValue, identifier
-
Method Details
-
convert
Description copied from interface:Constraint
Used to convert the provided input into the specified object.- Specified by:
convert
in interfaceConstraint<Double>
- Parameters:
value
- The string to convert into the object.- Returns:
- An optional containing the converted value, or an empty optional if the provided input can't be converted into the specified object.
-
validate
Description copied from interface:Constraint
Used to validate that the provided input is of the valid type.- Specified by:
validate
in interfaceConstraint<Double>
- Parameters:
value
- The input to validate.- Returns:
- True if the input is of the type associated with this constraint, otherwise false.
-