Package com.tangosol.net
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SubnetMaskFilter(String sAddr)
Construct a SubnetMaskFilter for the given pattern and slash mask.SubnetMaskFilter(InetAddress addrPattern, int cMaskBits)
Construct a SubnetMaskFilter for the given pattern and mask bit count.SubnetMaskFilter(InetAddress addrPattern, InetAddress addrMask)
Construct a SubnetMaskFilter for the given pattern and mask.
-
Method Summary
-
Methods inherited from class com.oracle.coherence.common.net.InetAddresses.IsSubnetMask
evaluate, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.tangosol.util.Filter
and, asLimitFilter, associatedWith, evaluate, forKeys, forPartitions, or, toExpression, xor
-
-
-
-
Constructor Detail
-
SubnetMaskFilter
public SubnetMaskFilter(InetAddress addrPattern, InetAddress addrMask)
Construct a SubnetMaskFilter for the given pattern and mask.- Parameters:
addrPattern
- the pattern to matchaddrMask
- 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 matchcMaskBits
- 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:
- CIDR Notation
-
-