Class PortValidator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int HIGHEST_PORT  
      private static int LOWEST_PORT  
    • Constructor Summary

      Constructors 
      Constructor Description
      PortValidator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void validate​(java.lang.Object value)
      This method checks if the given object is a valid value for this specific ValueValidator.
      • Methods inherited from class java.lang.Object

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

      • PortValidator

        public PortValidator()
    • Method Detail

      • validate

        public void validate​(java.lang.Object value)
                      throws java.lang.IllegalArgumentException
        Description copied from interface: ValueValidator
        This method checks if the given object is a valid value for this specific ValueValidator. Any arbitrary operation can be performed to ensure that the value is valid.
        Specified by:
        validate in interface ValueValidator
        Overrides:
        validate in class RangedIntegerValidator
        Parameters:
        value - The object to validate
        Throws:
        java.lang.IllegalArgumentException - if the value is invalid