public class Inet6Network extends Object implements InetNetwork
Constructor and Description |
---|
Inet6Network(InetAddress ip,
Integer netmask)
You need a IP address (InetAddress) and an subnetmask (Integer) to
construct an Inet6Network.
|
public Inet6Network(InetAddress ip, Integer netmask)
ip
- the InetAddress to init the classnetmask
- the InetAddress represent the netmask to init the classpublic boolean contains(InetAddress ip)
InetNetwork
contains
in interface InetNetwork
ip
- hostname or ipAddressInetNetwork.contains(InetAddress)
public String toString()
public int hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.