Interface IntConstraint
- All Superinterfaces:
Constraint<Integer>
Represents a
Constraint of the Integer 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:ConstraintUsed to convert the provided input into the specified object.- Specified by:
convertin interfaceConstraint<Integer>- 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:ConstraintUsed to validate that the provided input is of the valid type.- Specified by:
validatein interfaceConstraint<Integer>- Parameters:
value- The input to validate.- Returns:
- True if the input is of the type associated with this constraint, otherwise false.
-