public final class Ipv4Range extends AbstractIpRange<Ipv4,Ipv4Range>
| Modifier and Type | Class and Description |
|---|---|
static class |
Ipv4Range.Ipv4RangeBuilder |
AbstractRange.AbstractRangeBuilder<C extends Rangeable<C,R>,R extends AbstractRange<C,R>>DASH, DASH_WITH_SPACES, SLASH| Modifier | Constructor and Description |
|---|---|
protected |
Ipv4Range(Ipv4 start,
Ipv4 end) |
| Modifier and Type | Method and Description |
|---|---|
static Ipv4Range.Ipv4RangeBuilder |
from(BigInteger from) |
static Ipv4Range.Ipv4RangeBuilder |
from(Ipv4 from) |
static Ipv4Range.Ipv4RangeBuilder |
from(Long from) |
static Ipv4Range.Ipv4RangeBuilder |
from(String from) |
protected Ipv4Range |
newInstance(BigInteger start,
BigInteger end) |
protected Ipv4Range |
newInstance(Ipv4 start,
Ipv4 end) |
static Ipv4Range |
parse(String range)
Parses a String into an
Ipv4Range. |
static Ipv4Range |
parseCidr(String cidrString)
Parses a String of an IPv4 address and its subnet mask formatted as in a
Classless Inter-Domain Routing (CIDR) notation.
|
static Ipv4Range |
parseDecimalNotation(String range) |
Long |
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 Ipv4Range newInstance(BigInteger start, BigInteger end)
newInstance in class AbstractIpRange<Ipv4,Ipv4Range>protected Ipv4Range newInstance(Ipv4 start, Ipv4 end)
newInstance in class AbstractRange<Ipv4,Ipv4Range>public static Ipv4Range.Ipv4RangeBuilder from(Ipv4 from)
public static Ipv4Range.Ipv4RangeBuilder from(BigInteger from)
public static Ipv4Range.Ipv4RangeBuilder from(Long from)
public static Ipv4Range.Ipv4RangeBuilder from(String from)
public static Ipv4Range parse(String range)
Ipv4Range.range - a dash separated string of two IPv4 addresses e.g. "192.168.0.0-192.168.255.255"
or a CIDR-notation string, e.g. "192.168.0.0/16"Ipv4RangeIllegalArgumentException - if the string cannot be parsedparseCidr(String)public static Ipv4Range parseCidr(String cidrString)
cidrString - a CIDR-notation string, e.g. "192.168.0.0/16"Ipv4RangeIllegalArgumentException - if the string cannot be parsedpublic Long size()
Copyright © 2016. All rights reserved.