public final class IPv6Network extends IPv6AddressRange
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static IPv6Network |
fromAddressAndMask(IPv6Address address,
IPv6NetworkMask networkMask)
Create an IPv6 network from an IPv6Address and an IPv6NetworkMask
|
static IPv6Network |
fromString(String string)
Create an IPv6 network from its String representation.
|
static IPv6Network |
fromTwoAddresses(IPv6Address one,
IPv6Address two)
Create an IPv6 network from the two addresses within the network.
|
IPv6NetworkMask |
getNetmask() |
int |
hashCode() |
String |
toLongString() |
String |
toString() |
public static IPv6Network fromAddressAndMask(IPv6Address address, IPv6NetworkMask networkMask)
address
- IPv6 address (the network address or any other address within the network)networkMask
- IPv6 network maskpublic static IPv6Network fromTwoAddresses(IPv6Address one, IPv6Address two)
one
- address onetwo
- address two, should be bigger than address onepublic static IPv6Network fromString(String string)
string
- string representationpublic String toString()
toString
in class IPv6AddressRange
public String toLongString()
toLongString
in class IPv6AddressRange
toString
but without using shorthand notations for addressespublic boolean equals(Object o)
equals
in class IPv6AddressRange
public int hashCode()
hashCode
in class IPv6AddressRange
public IPv6NetworkMask getNetmask()
Copyright © 2013. All Rights Reserved.