Class InetAddressHelper.SubnetMaskFilter

java.lang.Object
com.oracle.coherence.common.net.InetAddresses.IsSubnetMask
com.tangosol.net.InetAddressHelper.SubnetMaskFilter
All Implemented Interfaces:
Predicate<InetAddress>, Filter<InetAddress>, Serializable
Enclosing class:
InetAddressHelper

public static class InetAddressHelper.SubnetMaskFilter extends com.oracle.coherence.common.net.InetAddresses.IsSubnetMask implements Filter<InetAddress>
SubnetMaskFilter evaluates to true for any address with matches the pattern for the masked bits
See Also:
  • Constructor Details

    • SubnetMaskFilter

      public SubnetMaskFilter(InetAddress addrPattern, InetAddress addrMask)
      Construct a SubnetMaskFilter for the given pattern and mask.
      Parameters:
      addrPattern - the pattern to match
      addrMask - the mask identifying the portion of the pattern to match
    • SubnetMaskFilter

      public SubnetMaskFilter(InetAddress addrPattern, int cMaskBits)
      Construct a SubnetMaskFilter for the given pattern and mask bit count.
      Parameters:
      addrPattern - the pattern to match
      cMaskBits - the number of mask bits
    • SubnetMaskFilter

      public SubnetMaskFilter(String sAddr)
      Construct a SubnetMaskFilter for the given pattern and slash mask.
      Parameters:
      sAddr - the pattern and mask
      See Also: