Package | Description |
---|---|
inet.ipaddr.ipv4 |
Classes for IPv4
|
inet.ipaddr.ipv6 |
Classes for IPv6
|
Modifier and Type | Method and Description |
---|---|
IPv4AddressSection |
IPv4AddressSection.adjustPrefixBySegment(boolean nextSegment) |
IPv4AddressSection |
IPv4AddressSection.adjustPrefixBySegment(boolean nextSegment,
boolean zeroed) |
IPv4AddressSection |
IPv4AddressSection.adjustPrefixLength(int adjustment) |
IPv4AddressSection |
IPv4AddressSection.adjustPrefixLength(int adjustment,
boolean zeroed) |
IPv4AddressSection |
IPv4AddressSection.append(IPv4AddressSection other) |
IPv4AddressSection |
IPv4AddressSection.appendToNetwork(IPv4AddressSection other) |
IPv4AddressSection |
IPv4AddressSection.applyPrefixLength(int networkPrefixLength)
Deprecated.
|
IPv4AddressSection |
IPv4AddressSection.assignMinPrefixForBlock() |
IPv4AddressSection |
IPv4AddressSection.assignPrefixForSingleBlock() |
IPv4AddressSection |
IPv4AddressSection.bitwiseOr(IPv4AddressSection mask)
Equivalent to
bitwiseOr(IPv4AddressSection, boolean) with the second argument as false. |
IPv4AddressSection |
IPv4AddressSection.bitwiseOr(IPv4AddressSection mask,
boolean retainPrefix)
Does the bitwise disjunction with this address section.
|
IPv4AddressSection |
IPv4AddressSection.bitwiseOrNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Does the bitwise disjunction with this address section.
|
IPv4AddressSection |
IPv4AddressSection.coverWithPrefixBlock() |
IPv4AddressSection |
IPv4AddressSection.coverWithPrefixBlock(IPv4AddressSection other) |
IPv4AddressSection |
IPv4AddressNetwork.IPv4AddressCreator.createFullSectionInternal(Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefix) |
IPv4AddressSection |
IPv4AddressSection.createMaxHost() |
IPv4AddressSection |
IPv4AddressNetwork.IPv4AddressCreator.createSection(byte[] bytes,
Integer prefix) |
IPv4AddressSection |
IPv4AddressNetwork.IPv4AddressCreator.createSection(byte[] bytes,
int byteStartIndex,
int byteEndIndex,
Integer prefix) |
IPv4AddressSection |
IPv4AddressNetwork.IPv4AddressCreator.createSection(IPv4AddressSegment[] segments) |
IPv4AddressSection |
IPv4AddressNetwork.IPv4AddressCreator.createSection(IPv4AddressSegment[] segments,
Integer networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.getHostMask() |
IPv4AddressSection |
IPv4AddressSection.getHostSection() |
IPv4AddressSection |
IPv4Address.getHostSection() |
IPv4AddressSection |
IPv4AddressSection.getHostSection(int networkPrefixLength) |
IPv4AddressSection |
IPv4Address.getHostSection(int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.getLower() |
IPv4AddressSection |
IPv4AddressSection.getLowerNonZeroHost() |
IPv4AddressSection |
IPv4AddressSection.getNetworkMask() |
IPv4AddressSection |
IPv4AddressSection.getNetworkSection() |
IPv4AddressSection |
IPv4Address.getNetworkSection() |
IPv4AddressSection |
IPv4AddressSection.getNetworkSection(int networkPrefixLength) |
IPv4AddressSection |
IPv4Address.getNetworkSection(int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.getNetworkSection(int networkPrefixLength,
boolean withPrefixLength) |
IPv4AddressSection |
IPv4Address.getNetworkSection(int networkPrefixLength,
boolean withPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.getSection() |
IPv4AddressSection |
IPv4Address.getSection() |
IPv4AddressSection |
IPv4AddressSection.getSection(int index) |
IPv4AddressSection |
IPv4Address.getSection(int index) |
IPv4AddressSection |
IPv4AddressSection.getSection(int index,
int endIndex) |
IPv4AddressSection |
IPv4Address.getSection(int index,
int endIndex) |
IPv4AddressSection |
IPv4AddressSection.getUpper() |
IPv4AddressSection |
IPv4AddressSection.increment(long increment) |
IPv4AddressSection |
IPv4AddressSection.incrementBoundary(long increment) |
IPv4AddressSection |
IPv4AddressSection.insert(int index,
IPv4AddressSection other) |
IPv4AddressSection |
IPv4AddressSection.intersect(IPv4AddressSection other)
Produces the subnet sections whose individual sections are found in both this and the given argument.
|
IPv4AddressSection |
IPv4AddressSection.mask(IPv4AddressSection mask)
Equivalent to
mask(IPv4AddressSection, boolean) with the second argument as false. |
IPv4AddressSection |
IPv4AddressSection.mask(IPv4AddressSection mask,
boolean retainPrefix)
Does the bitwise conjunction with this address.
|
IPv4AddressSection |
IPv4AddressSection.maskNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Produces the bitwise conjunction of the given mask with the network section of the address as indicated by the given prefix length.
|
IPv4AddressSection[] |
IPv4AddressSection.mergePrefixBlocks(IPv4AddressSection... sections)
Deprecated.
|
IPv4AddressSection[] |
IPv4AddressSection.mergeToPrefixBlocks(IPv4AddressSection... sections)
Merges this with the list of sections to produce the smallest array of prefix blocks.
|
IPv4AddressSection[] |
IPv4AddressSection.mergeToSequentialBlocks(IPv4AddressSection... sections)
Merges this with the list of sections to produce the smallest array of sequential block subnets.
|
IPv4AddressSection |
IPv4AddressSection.removePrefixLength()
Deprecated.
|
IPv4AddressSection |
IPv4AddressSection.removePrefixLength(boolean zeroed)
Deprecated.
|
IPv4AddressSection |
IPv4AddressSection.replace(int startIndex,
int endIndex,
IPv4AddressSection replacement,
int replacementStartIndex,
int replacementEndIndex)
Replaces segments starting from startIndex and ending before endIndex with the segments starting at replacementStartIndex and
ending before replacementEndIndex from the replacement section
|
IPv4AddressSection |
IPv4AddressSection.replace(int index,
IPv4AddressSection other)
Replace the segments of this section starting at the given index with the given replacement segments
|
IPv4AddressSection |
IPv4AddressSection.reverseBits(boolean perByte) |
IPv4AddressSection |
IPv4AddressSection.reverseBytes() |
IPv4AddressSection |
IPv4AddressSection.reverseBytesPerSegment() |
IPv4AddressSection |
IPv4AddressSection.reverseSegments() |
IPv4AddressSection |
IPv4AddressSection.setPrefixLength(int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.setPrefixLength(int networkPrefixLength,
boolean withZeros) |
IPv4AddressSection |
IPv4AddressSection.setPrefixLength(int networkPrefixLength,
boolean withZeros,
boolean zeroHostIsBlock) |
IPv4AddressSection[] |
IPv4AddressSection.spanWithPrefixBlocks()
Produces an array of prefix blocks that spans the same set of values.
|
IPv4AddressSection[] |
IPv4AddressSection.spanWithPrefixBlocks(IPv4AddressSection other)
Produces the list of prefix block subnets that span from this series to the given series.
|
IPv4AddressSection[] |
IPv4AddressSection.spanWithRangedSegments(IPv4AddressSection other)
Deprecated.
|
IPv4AddressSection[] |
IPv4AddressSection.spanWithSequentialBlocks()
Produces an array of blocks that are sequential that cover the same set of sections as this.
|
IPv4AddressSection[] |
IPv4AddressSection.spanWithSequentialBlocks(IPv4AddressSection other)
Produces a list of range subnets that span from this series to the given series.
|
IPv4AddressSection[] |
IPv4AddressSection.subtract(IPv4AddressSection other)
Subtract the given subnet from this subnet, returning an array of sections for the result (the subnets will not be contiguous so an array is required).
|
IPv4AddressSection |
IPv4AddressSection.toMaxHost() |
IPv4AddressSection |
IPv4AddressSection.toMaxHost(int prefixLength) |
IPv4AddressSection |
IPv4AddressSection.toPrefixBlock() |
IPv4AddressSection |
IPv4AddressSection.toPrefixBlock(int networkPrefixLength) |
IPv4AddressSection |
IPv4AddressSection.toZeroHost() |
IPv4AddressSection |
IPv4AddressSection.toZeroHost(int prefixLength) |
IPv4AddressSection |
IPv4AddressSection.toZeroNetwork() |
IPv4AddressSection |
IPv4AddressSection.withoutPrefixLength() |
Modifier and Type | Method and Description |
---|---|
IPv4AddressSection |
IPv4AddressSection.append(IPv4AddressSection other) |
IPv4AddressSection |
IPv4AddressSection.appendToNetwork(IPv4AddressSection other) |
IPv4AddressSection |
IPv4AddressSection.bitwiseOr(IPv4AddressSection mask)
Equivalent to
bitwiseOr(IPv4AddressSection, boolean) with the second argument as false. |
IPv4AddressSection |
IPv4AddressSection.bitwiseOr(IPv4AddressSection mask,
boolean retainPrefix)
Does the bitwise disjunction with this address section.
|
IPv4AddressSection |
IPv4AddressSection.bitwiseOrNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Does the bitwise disjunction with this address section.
|
IPv4AddressSection |
IPv4AddressSection.coverWithPrefixBlock(IPv4AddressSection other) |
IPv4Address |
IPv4AddressNetwork.IPv4AddressCreator.createAddress(IPv4AddressSection section) |
Long |
IPv4AddressSection.enumerateIPv4(IPv4AddressSection other)
Indicates where an address section sits relative to the ordering of individual address sections within this section.
|
IPv4AddressSection |
IPv4AddressSection.insert(int index,
IPv4AddressSection other) |
IPv4AddressSection |
IPv4AddressSection.intersect(IPv4AddressSection other)
Produces the subnet sections whose individual sections are found in both this and the given argument.
|
IPv4AddressSection |
IPv4AddressSection.mask(IPv4AddressSection mask)
Equivalent to
mask(IPv4AddressSection, boolean) with the second argument as false. |
IPv4AddressSection |
IPv4AddressSection.mask(IPv4AddressSection mask,
boolean retainPrefix)
Does the bitwise conjunction with this address.
|
IPv4AddressSection |
IPv4AddressSection.maskNetwork(IPv4AddressSection mask,
int networkPrefixLength)
Produces the bitwise conjunction of the given mask with the network section of the address as indicated by the given prefix length.
|
IPv4AddressSection[] |
IPv4AddressSection.mergePrefixBlocks(IPv4AddressSection... sections)
Deprecated.
|
IPv4AddressSection[] |
IPv4AddressSection.mergeToPrefixBlocks(IPv4AddressSection... sections)
Merges this with the list of sections to produce the smallest array of prefix blocks.
|
IPv4AddressSection[] |
IPv4AddressSection.mergeToSequentialBlocks(IPv4AddressSection... sections)
Merges this with the list of sections to produce the smallest array of sequential block subnets.
|
IPv4AddressSection |
IPv4AddressSection.replace(int startIndex,
int endIndex,
IPv4AddressSection replacement,
int replacementStartIndex,
int replacementEndIndex)
Replaces segments starting from startIndex and ending before endIndex with the segments starting at replacementStartIndex and
ending before replacementEndIndex from the replacement section
|
IPv4AddressSection |
IPv4AddressSection.replace(int index,
IPv4AddressSection other)
Replace the segments of this section starting at the given index with the given replacement segments
|
IPv4Address |
IPv4Address.replace(int startIndex,
IPv4AddressSection replacement)
Replaces segments starting from startIndex with as many segments as possible from the replacement section
|
IPv4AddressSection[] |
IPv4AddressSection.spanWithPrefixBlocks(IPv4AddressSection other)
Produces the list of prefix block subnets that span from this series to the given series.
|
IPv4AddressSection[] |
IPv4AddressSection.spanWithRangedSegments(IPv4AddressSection other)
Deprecated.
|
IPv4AddressSection[] |
IPv4AddressSection.spanWithSequentialBlocks(IPv4AddressSection other)
Produces a list of range subnets that span from this series to the given series.
|
IPv4AddressSection[] |
IPv4AddressSection.subtract(IPv4AddressSection other)
Subtract the given subnet from this subnet, returning an array of sections for the result (the subnets will not be contiguous so an array is required).
|
Constructor and Description |
---|
IPv4Address(IPv4AddressSection section)
Constructs an IPv4 address or subnet.
|
Modifier and Type | Method and Description |
---|---|
IPv4AddressSection |
IPv6AddressSection.getEmbeddedIPv4AddressSection()
Gets the IPv4 section corresponding to the lowest (least-significant) 4 bytes in the original address,
which will correspond to between 0 and 4 bytes in this address.
|
IPv4AddressSection |
IPv6AddressSection.getEmbeddedIPv4AddressSection(int startIndex,
int endIndex)
Produces an IPv4 address section from any sequence of bytes in this IPv6 address section
|
IPv4AddressSection |
IPv6Address.toMappedIPv4Segments()
::ffff:x:x/96 indicates IPv6 address mapped to IPv4
|