org.apache.james.util.inetnetwork.model
Class Inet6Network

java.lang.Object
  extended by org.apache.james.util.inetnetwork.model.Inet6Network
All Implemented Interfaces:
InetNetwork

public class Inet6Network
extends java.lang.Object
implements InetNetwork


Constructor Summary
Inet6Network(java.net.InetAddress ip, java.lang.Integer netmask)
          You need a IP address (InetAddress) and an subnetmask (Integer) to construct an Inet6Network.
 
Method Summary
 boolean contains(java.net.InetAddress ip)
          Return true if the network contains the given name
 boolean equals(java.lang.Object obj)
           
 int hashCode()
          Return hashCode representation of this class
 java.lang.String toString()
          Return String representation of this class.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Inet6Network

public Inet6Network(java.net.InetAddress ip,
                    java.lang.Integer netmask)
You need a IP address (InetAddress) and an subnetmask (Integer) to construct an Inet6Network.

Parameters:
ip - the InetAddress to init the class
netmask - the InetAddress represent the netmask to init the class
Method Detail

contains

public boolean contains(java.net.InetAddress ip)
Description copied from interface: InetNetwork
Return true if the network contains the given name

Specified by:
contains in interface InetNetwork
Returns:
true if the network contains the ip address

toString

public java.lang.String toString()
Return String representation of this class.

Overrides:
toString in class java.lang.Object
Returns:
string String representation of this class

hashCode

public int hashCode()
Return hashCode representation of this class

Overrides:
hashCode in class java.lang.Object
Returns:
hashCode the hashCode representation of this class

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.