Class ValidateIntegerNumber

java.lang.Object
com.example.common.validate.BaseValidator
com.example.common.validate.ValidateIntegerNumber
All Implemented Interfaces:
ValidatorInterface

public class ValidateIntegerNumber extends BaseValidator implements ValidatorInterface
The ValidateIntegerNumber class extends the BaseValidator class and implements the ValidatorInterface for validating integer numbers.
  • Constructor Details

    • ValidateIntegerNumber

      public ValidateIntegerNumber(String value)
      Constructs a ValidateIntegerNumber object with the specified value.
      Parameters:
      value - the value to validate as an integer number
  • Method Details

    • validate

      public boolean validate()
      Validates the value as an integer number using a regular expression pattern.
      Specified by:
      validate in interface ValidatorInterface
      Returns:
      true if the value is a valid integer number, false otherwise