public final class Ipv6 extends AbstractIp<Ipv6,Ipv6Range>
| Modifier and Type | Field and Description |
|---|---|
static Ipv6 |
FIRST_IPV6_ADDRESS |
static BigInteger |
FOUR_OCTECT_MASK |
static Ipv6 |
LAST_IPV6_ADDRESS |
static BigInteger |
MAXIMUM_VALUE |
static BigInteger |
MINIMUM_VALUE |
static int |
NUMBER_OF_BITS |
| Modifier | Constructor and Description |
|---|---|
protected |
Ipv6(BigInteger value) |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
asBigInteger() |
Ipv6Range |
asRange() |
int |
bitSize() |
int |
compareTo(Ipv6 other) |
boolean |
equals(Object o) |
int |
getCommonPrefixLength(Ipv6 other) |
int |
hashCode() |
boolean |
hasNext() |
boolean |
hasPrevious() |
Ipv6 |
lowerBoundForPrefix(int prefixLength) |
Ipv6 |
next() |
static Ipv6 |
of(BigInteger value) |
static Ipv6 |
of(String value) |
static Ipv6 |
parse(String ipv6Address)
Parses a String into an
Ipv6 address. |
Ipv6 |
previous() |
String |
toString() |
Ipv6 |
upperBoundForPrefix(int prefixLength) |
public static final BigInteger FOUR_OCTECT_MASK
public static final int NUMBER_OF_BITS
public static final BigInteger MINIMUM_VALUE
public static final BigInteger MAXIMUM_VALUE
public static final Ipv6 FIRST_IPV6_ADDRESS
public static final Ipv6 LAST_IPV6_ADDRESS
protected Ipv6(BigInteger value)
public static Ipv6 of(BigInteger value)
public int compareTo(Ipv6 other)
public Ipv6 next()
public Ipv6 previous()
public boolean hasNext()
public boolean hasPrevious()
public Ipv6Range asRange()
public static Ipv6 parse(String ipv6Address)
Ipv6 address.ipv6Address - a text representation of an IPv6 address as defined in rfc4291Ipv6NullPointerException - if the string argument is nullIllegalArgumentException - if the string cannot be parsedpublic int bitSize()
public BigInteger asBigInteger()
public Ipv6 lowerBoundForPrefix(int prefixLength)
lowerBoundForPrefix in class AbstractIp<Ipv6,Ipv6Range>public Ipv6 upperBoundForPrefix(int prefixLength)
upperBoundForPrefix in class AbstractIp<Ipv6,Ipv6Range>public int getCommonPrefixLength(Ipv6 other)
getCommonPrefixLength in class AbstractIp<Ipv6,Ipv6Range>Copyright © 2016. All rights reserved.