public final class Ipv6Range extends AbstractIpRange<Ipv6,Ipv6Range>
| Modifier and Type | Class and Description |
|---|---|
static class |
Ipv6Range.Ipv6RangeBuilder |
AbstractRange.AbstractRangeBuilder<C extends Rangeable<C,R>,R extends AbstractRange<C,R>>DASH, DASH_WITH_SPACES, SLASH| Modifier | Constructor and Description |
|---|---|
protected |
Ipv6Range(Ipv6 start,
Ipv6 end) |
| Modifier and Type | Method and Description |
|---|---|
static Ipv6Range.Ipv6RangeBuilder |
from(BigInteger from) |
static Ipv6Range.Ipv6RangeBuilder |
from(Ipv6 from) |
static Ipv6Range.Ipv6RangeBuilder |
from(String from) |
protected Ipv6Range |
newInstance(BigInteger start,
BigInteger end) |
protected Ipv6Range |
newInstance(Ipv6 start,
Ipv6 end) |
static Ipv6Range |
parse(String range)
Parses a String into an
Ipv6Range. |
static Ipv6Range |
parseCidr(String cidrString)
Parses a String of an IPv6 address and its subnet mask formatted as in a
Classless Inter-Domain Routing (CIDR) notation.
|
static Ipv6Range |
parseDecimalNotation(String range) |
BigInteger |
size() |
splitToPrefixes, toString, toStringInCidrNotation, toStringInDecimalNotation, toStringInRangeNotation, toStringInRangeNotationWithSpacescontains, contains, end, equals, exclude, hashCode, intersection, isConsecutive, isEmpty, isSameRange, iterator, merge, overlaps, startclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, contains, end, exclude, intersection, isConsecutive, isEmpty, isSameRange, merge, overlaps, startforEach, iterator, spliteratorprotected Ipv6Range newInstance(BigInteger start, BigInteger end)
newInstance in class AbstractIpRange<Ipv6,Ipv6Range>protected Ipv6Range newInstance(Ipv6 start, Ipv6 end)
newInstance in class AbstractRange<Ipv6,Ipv6Range>public static Ipv6Range.Ipv6RangeBuilder from(Ipv6 from)
public static Ipv6Range.Ipv6RangeBuilder from(BigInteger from)
public static Ipv6Range.Ipv6RangeBuilder from(String from)
public static Ipv6Range parse(String range)
Ipv6Range.range - a dash separated string of two IPv6 addresses e.g. "2001:db8::1-2001:db8::2"
or a CIDR-notation string, e.g. "2001:0db8:0:cd30::/60"Ipv6RangeIllegalArgumentException - if the string cannot be parsedparseCidr(String)public static Ipv6Range parseCidr(String cidrString)
cidrString - a CIDR-notation string, e.g. "2001:0db8:0:cd30::/60"Ipv6RangeIllegalArgumentException - if the string cannot be parsedpublic BigInteger size()
Copyright © 2016. All rights reserved.