public class ZonedIPv6Address extends IPv6Address
IPv6Address.IPv6KnownRange, IPv6Address.LongByte, IPv6Address.LongShort| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
zone |
ADDRESS_BITS, ADDRESS_BYTES, ADDRESS_SHORTS, HOLDER_BITS, lower, upper| Constructor and Description |
|---|
ZonedIPv6Address(long upper,
long lower,
java.lang.String zone)
Build a ZonedIPv6Address from two longs an a String - upper and lower 64
bits in form of longs and a zone
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IPv6Address o) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getZone()
Returns the zone this address belongs to
|
int |
hashCode() |
boolean |
isZoned()
Does this address have a specific zone?
|
ZonedIPv6Address |
minus(int n)
Return an address smaller than the current one by n, with wraparound
|
ZonedIPv6Address |
minus(long n)
Return an address smaller than the current one by n, with wraparound
|
ZonedIPv6Address |
next()
Returns the following address, with wraparound
|
static ZonedIPv6Address |
of(byte[] bigEndianByteArr,
java.lang.String zone)
Build a ZonedIPv6Address from a 16 byte long big-endian (highest byte
first) byte array and a zone String
|
static ZonedIPv6Address |
of(java.net.Inet6Address address)
Build a ZonedIPv6Address from an Inet6Address with a scoped interface or
scope id
|
static ZonedIPv6Address |
of(IPv6Address address,
java.lang.String zone)
Build a ZonedIPv6Address from an IPv6Address and a separate zone String
|
static ZonedIPv6Address |
of(long upper,
long lower,
java.lang.String zone)
Build a ZonedIPv6Address from two longs and zone - upper and lower 64
bits in form of longs, and a String zone
|
static ZonedIPv6Address |
of(java.lang.String address)
Build an ZonedIPv6Address from a literal IPv6 with a zone designation
such as "[fe80::1%2]","fe80::1%eth0", and similar valid forms
|
ZonedIPv6Address |
plus(int n)
Return an address larger than the current one by n, with wraparound
|
ZonedIPv6Address |
plus(long n)
Return an address larger than the current one by n, with wraparound
|
ZonedIPv6Address |
previous()
Returns the previous address, with wraparound
|
java.lang.String |
toString() |
getLower, getUpper, is6To4, isGlobalUnicast, isHexDigit, isIPv4Translation, isLinkLocal, isLoopback, isMartian, isMulticast, isPrivate, isReserved, isUnspecified, longCompare, of, of, toBigEndianArray, toInet6Address, toLittleEndianArray, unsignedCompare, verifyArray, versionof, toArray, toBigInteger, toInetAddress, toSignedBigIntegerpublic ZonedIPv6Address(long upper,
long lower,
java.lang.String zone)
upper - upper 64 bits of the IPv6Addresslower - lower 64 bits of the IPv6Addresszone - the IPv6Addresspublic static ZonedIPv6Address of(java.lang.String address)
address - with zonejava.lang.IllegalArgumentException - if the provided address is invalidpublic static ZonedIPv6Address of(long upper, long lower, java.lang.String zone)
upper - upper 64 bits of the IPv6Addresslower - lower 64 bits of the IPv6Addresszone - zone Stringpublic static ZonedIPv6Address of(byte[] bigEndianByteArr, java.lang.String zone)
bigEndianByteArr - 16 byte big-endian byte arrayzone - zone Stringpublic static ZonedIPv6Address of(IPv6Address address, java.lang.String zone)
address - zone - public static ZonedIPv6Address of(java.net.Inet6Address address)
address - public int hashCode()
hashCode in class IPv6Addresspublic boolean equals(java.lang.Object obj)
equals in class IPv6Addresspublic int compareTo(IPv6Address o)
compareTo in interface java.lang.Comparable<IPv6Address>compareTo in class IPv6Addresspublic java.lang.String toString()
toString in class IPv6Addresspublic ZonedIPv6Address next()
IPAddressnext in class IPv6Addresspublic ZonedIPv6Address plus(long n)
IPv6Addressplus in class IPv6Addresspublic ZonedIPv6Address plus(int n)
IPAddressplus in class IPv6Addresspublic ZonedIPv6Address previous()
IPAddressprevious in class IPv6Addresspublic ZonedIPv6Address minus(int n)
IPAddressminus in class IPv6Addresspublic ZonedIPv6Address minus(long n)
IPv6Addressminus in class IPv6Addresspublic boolean isZoned()
isZoned in class IPv6Addresspublic java.lang.String getZone()