Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.net
Class InetAddressHelper.SubnetMaskFilter

java.lang.Object
  extended by com.tangosol.net.InetAddressHelper.SubnetMaskFilter

All Implemented Interfaces:
Filter
Enclosing class:
InetAddressHelper

public static class InetAddressHelper.SubnetMaskFilter
extends java.lang.Object
implements Filter

SubnetMaskFilter evaulates to true for any address with matches the pattern for the masked bits


Field Summary
protected  byte[] m_abMask
           
protected  byte[] m_abPattern
           
protected  java.lang.String m_sDescription
           

 

Constructor Summary
InetAddressHelper.SubnetMaskFilter(java.net.InetAddress addrPattern, java.net.InetAddress addrMask)
          Construct a SubnetMaskFilter for the given pattern and mask.
InetAddressHelper.SubnetMaskFilter(java.net.InetAddress addrPattern, int cMaskBits)
          Construct a SubnetMaskFilter for the given pattern and mask bit count.
InetAddressHelper.SubnetMaskFilter(java.lang.String sAddr)
          Construct a SubnetMaskFilter for the given pattern and slash mask.

 

Method Summary
 boolean evaluate(java.lang.Object o)
          Apply the test to the object.
 java.lang.String toString()
          

 

Field Detail

m_sDescription

protected java.lang.String m_sDescription

m_abPattern

protected byte[] m_abPattern

m_abMask

protected byte[] m_abMask

Constructor Detail

InetAddressHelper.SubnetMaskFilter

public InetAddressHelper.SubnetMaskFilter(java.net.InetAddress addrPattern,
                                          java.net.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

InetAddressHelper.SubnetMaskFilter

public InetAddressHelper.SubnetMaskFilter(java.net.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

InetAddressHelper.SubnetMaskFilter

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

Method Detail

evaluate

public boolean evaluate(java.lang.Object o)
Apply the test to the object.
Specified by:
evaluate in interface Filter
Parameters:
o - the object to test
Returns:
true if the test passes, false otherwise

toString

public java.lang.String toString()

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.