Class IPAddressMap.IPAddrPattern

  • Enclosing class:
    IPAddressMap<TYPE>

    private static class IPAddressMap.IPAddrPattern
    extends java.lang.Object
    IPAddrPattern Represents internet address wildcard. Matches the wildcard to provided internet address.
    • Constructor Summary

      Constructors 
      Constructor Description
      IPAddrPattern​(java.lang.String value)
      Create new IPAddrPattern
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean match​(java.lang.String value)
      Match the specified internet address against the wildcard
      • Methods inherited from class java.lang.Object

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

      • IPAddrPattern

        public IPAddrPattern​(java.lang.String value)
                      throws java.lang.IllegalArgumentException
        Create new IPAddrPattern
        Parameters:
        value - internet address wildcard specification
        Throws:
        java.lang.IllegalArgumentException - if wildcard specification is invalid
    • Method Detail

      • match

        public boolean match​(java.lang.String value)
                      throws java.lang.IllegalArgumentException
        Match the specified internet address against the wildcard
        Parameters:
        value - internet address
        Returns:
        true if specified internet address matches wildcard specification
        Throws:
        java.lang.IllegalArgumentException - if specified internet address is invalid