|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.ipv6.IPv6Address
public final class IPv6Address
Immutable representation of an IPv6 address.
| Method Summary | |
|---|---|
IPv6Address |
add(int value)
Addition. |
int |
compareTo(IPv6Address that)
|
boolean |
equals(Object o)
|
static IPv6Address |
fromInetAddress(InetAddress inetAddress)
Create an IPv6 address from a java.net.Inet6Address. |
static IPv6Address |
fromString(String string)
Create an IPv6 address from its String representation. |
long |
getHighBits()
|
long |
getLowBits()
|
int |
hashCode()
|
IPv6Address |
maskWithNetworkMask(IPv6NetworkMask networkMask)
Mask the address with the given network mask. |
IPv6Address |
maximumAddressWithNetworkMask(IPv6NetworkMask networkMask)
Calculate the maximum address with the given network mask. |
int |
numberOfLeadingOnes()
|
int |
numberOfLeadingZeroes()
|
int |
numberOfTrailingOnes()
|
int |
numberOfTrailingZeroes()
|
IPv6Address |
subtract(int value)
Subtraction. |
InetAddress |
toInetAddress()
|
String |
toLongString()
|
short[] |
toShortArray()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static IPv6Address fromString(String string)
string - string representation
public static IPv6Address fromInetAddress(InetAddress inetAddress)
inetAddress - Inet6Address representation
public InetAddress toInetAddress()
throws UnknownHostException
UnknownHostExceptionpublic IPv6Address add(int value)
value - value to add
public IPv6Address subtract(int value)
value - value to substract
public IPv6Address maskWithNetworkMask(IPv6NetworkMask networkMask)
networkMask - network mask
public IPv6Address maximumAddressWithNetworkMask(IPv6NetworkMask networkMask)
networkMask - network mask
public String toString()
toString in class Objectpublic String toLongString()
public short[] toShortArray()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(IPv6Address that)
compareTo in interface Comparable<IPv6Address>public long getHighBits()
public long getLowBits()
public int numberOfTrailingZeroes()
public int numberOfTrailingOnes()
public int numberOfLeadingZeroes()
public int numberOfLeadingOnes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||