Package | Description |
---|---|
inet.ipaddr |
Base classes for IP addresses and generic addresses.
|
inet.ipaddr.format.util |
Contains utility classes such as collections, spliterators, and String-writers.
|
inet.ipaddr.ipv4 |
Classes for IPv4
|
inet.ipaddr.ipv6 |
Classes for IPv6
|
Modifier and Type | Method and Description |
---|---|
IPv4Address |
IPAddress.toIPv4()
If this address is IPv4, or can be converted to IPv4, returns that
IPv4Address . |
IPv4Address |
IPAddressConverter.DefaultAddressConverter.toIPv4(IPAddress address) |
Modifier and Type | Class and Description |
---|---|
class |
BaseDualIPv4v6Tries<T4 extends AddressTrie<IPv4Address>,T6 extends AddressTrie<IPv6Address>>
Contains a pair of IPv4 and IPv6 tries for a data structure that can have fast look-up and containment checks of both IPv4 and IPv6 addresses.
|
Modifier and Type | Method and Description |
---|---|
IPv4Address |
IPv4Address.adjustPrefixBySegment(boolean nextSegment) |
IPv4Address |
IPv4Address.adjustPrefixBySegment(boolean nextSegment,
boolean zeroed) |
IPv4Address |
IPv4Address.adjustPrefixLength(int adjustment) |
IPv4Address |
IPv4Address.adjustPrefixLength(int adjustment,
boolean zeroed) |
IPv4Address |
IPv4Address.applyPrefixLength(int networkPrefixLength)
Deprecated.
|
IPv4Address |
IPv4Address.assignMinPrefixForBlock() |
IPv4Address |
IPv4Address.assignPrefixForSingleBlock() |
IPv4Address |
IPv4Address.bitwiseOr(IPAddress mask) |
IPv4Address |
IPv4Address.bitwiseOr(IPAddress mask,
boolean retainPrefix) |
IPv4Address |
IPv4Address.bitwiseOrNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4Address |
IPv4Address.coverWithPrefixBlock() |
IPv4Address |
IPv4AddressSeqRange.coverWithPrefixBlock() |
IPv4Address |
IPv4Address.coverWithPrefixBlock(IPAddress other) |
IPv4Address |
IPv4AddressNetwork.IPv4AddressCreator.createAddress(Inet4Address addr) |
IPv4Address |
IPv4AddressNetwork.IPv4AddressCreator.createAddress(Inet4Address addr,
Integer networkPrefixLength) |
IPv4Address |
IPv4AddressNetwork.IPv4AddressCreator.createAddress(IPv4AddressSection section) |
IPv4Address |
IPv4Address.getHostMask() |
IPv4Address |
IPv4Address.getLower() |
IPv4Address |
IPv4AddressSeqRange.getLower() |
IPv4Address |
IPv4Address.getLowerNonZeroHost() |
IPv4Address |
IPv4Address.getNetworkMask() |
IPv4Address |
IPv4Address.getUpper() |
IPv4Address |
IPv4AddressSeqRange.getUpper() |
IPv4Address |
IPv4Address.increment(long increment) |
IPv4Address |
IPv4Address.incrementBoundary(long increment) |
IPv4Address |
IPv4Address.intersect(IPAddress other) |
IPv4Address |
IPv4Address.mask(IPAddress mask) |
IPv4Address |
IPv4Address.mask(IPAddress mask,
boolean retainPrefix) |
IPv4Address |
IPv4Address.maskNetwork(IPAddress mask,
int networkPrefixLength) |
IPv4Address[] |
IPv4Address.mergeToPrefixBlocks(IPAddress... addresses) |
IPv4Address[] |
IPv4Address.mergeToSequentialBlocks(IPAddress... addresses) |
IPv4Address |
IPv4Address.removePrefixLength()
Deprecated.
|
IPv4Address |
IPv4Address.removePrefixLength(boolean zeroed)
Deprecated.
|
IPv4Address |
IPv4Address.replace(int startIndex,
int endIndex,
IPv4Address replacement,
int replacementIndex)
Replaces segments starting from startIndex and ending before endIndex with the same number of segments starting at replacementStartIndex from the replacement section
|
IPv4Address |
IPv4Address.replace(int startIndex,
IPv4AddressSection replacement)
Replaces segments starting from startIndex with as many segments as possible from the replacement section
|
IPv4Address |
IPv4Address.reverseBits(boolean perByte) |
IPv4Address |
IPv4Address.reverseBytes() |
IPv4Address |
IPv4Address.reverseBytesPerSegment() |
IPv4Address |
IPv4Address.reverseSegments() |
IPv4Address |
IPv4Address.setPrefixLength(int prefixLength) |
IPv4Address |
IPv4Address.setPrefixLength(int prefixLength,
boolean zeroed) |
IPv4Address |
IPv4Address.setPrefixLength(int prefixLength,
boolean zeroed,
boolean zeroHostIsBlock) |
IPv4Address[] |
IPv4Address.spanWithPrefixBlocks()
Produces an array of prefix blocks that cover the same set of addresses as this.
|
IPv4Address[] |
IPv4AddressSeqRange.spanWithPrefixBlocks() |
IPv4Address[] |
IPv4Address.spanWithPrefixBlocks(IPAddress other) |
IPv4Address[] |
IPv4Address.spanWithSequentialBlocks()
Produces an array of blocks that are sequential that cover the same set of addresses as this.
|
IPv4Address[] |
IPv4AddressSeqRange.spanWithSequentialBlocks() |
IPv4Address[] |
IPv4Address.spanWithSequentialBlocks(IPAddress other) |
IPv4Address[] |
IPv4Address.subtract(IPAddress other) |
IPv4Address |
IPv4Address.toBroadcastAddress()
The broadcast address has the same prefix but a host that is all 1 bits.
|
IPv4Address |
IPv4Address.toIPv4() |
IPv4Address |
IPv4Address.IPv4AddressConverter.toIPv4(IPAddress address)
If the given address is IPv4, or can be converted to IPv4, returns that
IPv4Address . |
IPv4Address |
IPv4Address.toMaxHost() |
IPv4Address |
IPv4Address.toMaxHost(int prefixLength) |
IPv4Address |
IPv4Address.toNetworkAddress()
The network address has the same prefix but a zero host.
|
IPv4Address |
IPv4Address.toPrefixBlock() |
IPv4Address |
IPv4Address.toPrefixBlock(int networkPrefixLength) |
IPv4Address |
IPv4Address.toZeroHost() |
IPv4Address |
IPv4Address.toZeroHost(int prefixLength) |
IPv4Address |
IPv4Address.toZeroNetwork() |
IPv4Address |
IPv4Address.withoutPrefixLength() |
Modifier and Type | Method and Description |
---|---|
IPv4AddressTrie.IPv4TrieNode |
IPv4AddressTrie.addTrie(AddressTrie.TrieNode<IPv4Address> trie) |
IPv4AddressAssociativeTrie.IPv4AssociativeTrieNode<V> |
IPv4AddressAssociativeTrie.addTrie(AddressTrie.TrieNode<IPv4Address> trie) |
IPv4AddressAssociativeTrie.IPv4AssociativeTrieNode<V> |
IPv4AddressAssociativeTrie.putTrie(AssociativeAddressTrie.AssociativeTrieNode<IPv4Address,V> trie) |
String |
IPv4AddressSeqRange.toIPv4String(Function<IPv4Address,String> lowerStringer,
String separator,
Function<IPv4Address,String> upperStringer) |
String |
IPv4AddressSeqRange.toIPv4String(Function<IPv4Address,String> lowerStringer,
String separator,
Function<IPv4Address,String> upperStringer) |
Constructor and Description |
---|
IPv4AddressSeqRange(IPv4Address first,
IPv4Address second) |
Modifier and Type | Method and Description |
---|---|
IPv4Address |
IPv6Address.get6To4IPv4Address()
Returns the second and third segments as an
IPv4Address . |
IPv4Address |
IPv6Address.getEmbeddedIPv4Address()
Returns the embedded
IPv4Address in the lowest (least-significant) two segments. |
IPv4Address |
IPv6Address.getEmbeddedIPv4Address(int byteIndex)
Produces an IPv4 address from any sequence of 4 bytes in this IPv6 address.
|
IPv4Address |
IPv6Address.toIPv4()
If this address is IPv4 convertible, returns that address.
|
Modifier and Type | Method and Description |
---|---|
static IPv6AddressSection |
IPv6AddressSection.createSection(IPv6AddressNetwork.IPv6AddressCreator creator,
IPv6AddressSegment[] nonMixedSection,
IPv4Address mixedSection) |
IPv6Address |
IPv6AddressSection.getIPv6Address(IPv4Address mixedSection)
Create an IPv6 mixed address using the given address for the embedded IPv4 segments
|