Class IpV4Validator

  • All Implemented Interfaces:
    com.beust.jcommander.IParameterValidator

    public class IpV4Validator
    extends IpValidator
    Command line flag validator for an IP v4 address.
    • Constructor Summary

      Constructors 
      Constructor Description
      IpV4Validator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int ipVersion()  
      protected boolean shouldAccept​(java.net.InetAddress inetAddress)  
      • Methods inherited from class java.lang.Object

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

      • IpV4Validator

        public IpV4Validator()
    • Method Detail

      • shouldAccept

        protected boolean shouldAccept​(java.net.InetAddress inetAddress)
        Specified by:
        shouldAccept in class IpValidator