Class IntegerPropertyValidator

  • All Implemented Interfaces:
    PropertyValidator

    public class IntegerPropertyValidator
    extends java.lang.Object
    implements PropertyValidator
    Validator for a property that represents an integer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean validate​(java.lang.String name, java.lang.Object value)
      Method to validate the property, allowing only Integer or String(with Integer values).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntegerPropertyValidator

        public IntegerPropertyValidator()
    • Method Detail

      • validate

        public boolean validate​(java.lang.String name,
                                java.lang.Object value)
        Method to validate the property, allowing only Integer or String(with Integer values).
        Specified by:
        validate in interface PropertyValidator
        Parameters:
        name - Name of property
        value - Value of property
        Returns:
        Whether it is valid