Package | Description |
---|---|
inet.ipaddr |
Base classes for IP addresses and generic addresses.
|
inet.ipaddr.format.standard |
Classes for constructing division groupings in which the divisions are under 64 bits of length.
|
inet.ipaddr.ipv4 |
Classes for IPv4
|
inet.ipaddr.ipv6 |
Classes for IPv6
|
inet.ipaddr.mac |
Classes for MAC addresses.
|
Modifier and Type | Class and Description |
---|---|
class |
AddressNetwork<S extends AddressSegment>
An object representing a collection of addresses.
|
static interface |
AddressNetwork.AddressSegmentCreator<S extends AddressSegment> |
Modifier and Type | Class and Description |
---|---|
class |
IPAddressSegment
This represents a single segment of an IP address.
|
Modifier and Type | Method and Description |
---|---|
S[] |
AddressNetwork.AddressSegmentCreator.createSegmentArray(int length) |
AddressSegment |
AddressSegment.getLower()
If this segment represents a range of values, returns a segment representing just the lowest value in the range, otherwise returns this.
|
AddressSegment |
AddressSegmentSeries.getSegment(int index)
Returns the segment from this series at the given index.
|
AddressSegment[] |
AddressSegmentSeries.getSegments()
Returns the segments of this series of segments as an array.
|
AddressSegment |
AddressSegment.getUpper()
If this segment represents a range of values, returns a segment representing just the highest value in the range, otherwise returns this.
|
AddressSegment |
AddressSegment.reverseBits(boolean perByte) |
AddressSegment |
AddressSegment.reverseBytes() |
Modifier and Type | Method and Description |
---|---|
Iterable<? extends AddressSegment> |
AddressSegment.getIterable() |
Iterator<? extends AddressSegment> |
AddressSegment.iterator() |
AddressComponentSpliterator<? extends AddressSegment> |
AddressSegment.spliterator() |
Stream<? extends AddressSegment> |
AddressSegment.stream() |
Modifier and Type | Method and Description |
---|---|
int |
AddressComparator.compare(AddressSegment one,
AddressSegment two) |
boolean |
AddressSegment.contains(AddressSegment other) |
void |
IPAddressSection.getSegments(AddressSegment[] segs) |
void |
AddressSegmentSeries.getSegments(AddressSegment[] segs)
Copies the existing segments into the given array.
|
void |
Address.getSegments(AddressSegment[] segs) |
void |
IPAddressSection.getSegments(int start,
int end,
AddressSegment[] segs,
int destIndex) |
void |
AddressSegmentSeries.getSegments(int start,
int end,
AddressSegment[] segs,
int index)
get the segments from start to end and insert into the segs array at the given index
|
void |
Address.getSegments(int start,
int end,
AddressSegment[] segs,
int index) |
boolean |
AddressSegment.overlaps(AddressSegment other) |
boolean |
IPAddressSegment.prefixEquals(AddressSegment other,
int prefixLength) |
boolean |
AddressSegment.prefixEquals(AddressSegment other,
int prefixLength)
Returns whether the given prefix bits match the same bits of the given segment.
|
Modifier and Type | Class and Description |
---|---|
class |
AddressCreator<T extends Address,R extends AddressSection,E extends AddressSection,S extends AddressSegment>
Has methods for creating addresses, segments and sections that are available to the parser.
|
Modifier and Type | Class and Description |
---|---|
class |
IPv4AddressSegment
This represents a segment of an IPv4 address.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IPv4AddressSegment.contains(AddressSegment other) |
boolean |
IPv4AddressSegment.overlaps(AddressSegment other) |
boolean |
IPv4AddressSegment.prefixEquals(AddressSegment other,
int segmentPrefixLength) |
Modifier and Type | Class and Description |
---|---|
class |
IPv6AddressSegment
This represents a segment of an IPv6 address.
|
Modifier and Type | Method and Description |
---|---|
<S extends AddressSegment> |
IPv6AddressSegment.getSplitSegments(S[] segs,
int index,
AddressNetwork.AddressSegmentCreator<S> creator)
Converts this IPv6 address segment into smaller segments,
copying them into the given array starting at the given index.
|
Modifier and Type | Method and Description |
---|---|
boolean |
IPv6AddressSegment.contains(AddressSegment other) |
<S extends AddressSegment> |
IPv6AddressSegment.getSplitSegments(S[] segs,
int index,
AddressNetwork.AddressSegmentCreator<S> creator)
Converts this IPv6 address segment into smaller segments,
copying them into the given array starting at the given index.
|
boolean |
IPv6AddressSegment.overlaps(AddressSegment other) |
boolean |
IPv6AddressSegment.prefixEquals(AddressSegment other,
int segmentPrefixLength) |
Modifier and Type | Class and Description |
---|---|
class |
MACAddressSegment
Represents a segment of a MAC address.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MACAddressSegment.contains(AddressSegment other) |
void |
MACAddressSection.getSegments(AddressSegment[] segs) |
void |
MACAddressSection.getSegments(int start,
int end,
AddressSegment[] segs,
int destIndex) |
boolean |
MACAddressSegment.overlaps(AddressSegment other) |
boolean |
MACAddressSegment.prefixEquals(AddressSegment o,
int segmentPrefixLength) |