Package org.jppf.net

Class AbstractIPAddressPattern

java.lang.Object
org.jppf.net.RangePattern
org.jppf.net.AbstractIPAddressPattern
Direct Known Subclasses:
IPv4AddressPattern, IPv6AddressPattern

public abstract class AbstractIPAddressPattern extends RangePattern
Represents a pattern used for IP addresses inclusion or exclusion lists.
A pattern represents a single value or a range of values for each component of an IP address.
Author:
Laurent Cohen
  • Constructor Details

  • Method Details

    • matches

      public boolean matches(InetAddress ip)
      Determine whether the specified IP address matches this pattern. No check is made to verify that the IP address is valid.
      Parameters:
      ip - the ip to match as a string.
      Returns:
      true if the address matches this pattern, false otherwise.