Class IsIntegerValidator

All Implemented Interfaces:
HasHandlers

public class IsIntegerValidator extends Validator
Tests whether the value for this field is a whole number. If validator.convertToInteger is true, float values will be converted into integers and validation will succeed.
  • Constructor Details

    • IsIntegerValidator

      public IsIntegerValidator()
  • Method Details

    • setConvertToInteger

      public void setConvertToInteger(boolean convertToInteger)
      Set the convertToInteger.
      Parameters:
      convertToInteger - the convertToInteger
    • getConvertToInteger

      public boolean getConvertToInteger()
      Return the convertToInteger.
      Returns:
      the convertToInteger