public static class IPAddressNetwork.IPAddressGenerator extends Object implements Serializable
A factory of address strings or host names, which can be particularly useful if you are using your own network, or if you are using your own validation options.
| Constructor and Description |
|---|
IPAddressGenerator() |
IPAddressGenerator(IPAddressStringParameters options) |
IPAddressGenerator(IPv4AddressNetwork ipv4Network,
IPv6AddressNetwork ipv6Network)
Copies the default string options but inserts the given networks.
|
| Modifier and Type | Method and Description |
|---|---|
IPAddress |
from(byte[] bytes) |
IPAddress |
from(byte[] bytes,
Integer prefixLength) |
IPAddress |
from(byte[] bytes,
int byteStartIndex,
int byteEndIndex) |
IPAddress |
from(byte[] bytes,
int byteStartIndex,
int byteEndIndex,
Integer networkPrefixLength) |
IPAddress |
from(InetAddress inetAddress) |
IPAddress |
from(InetAddress inetAddress,
Integer prefixLength) |
IPAddress |
from(InterfaceAddress interfaceAddress) |
IPAddress |
from(IPAddress.IPVersion version,
Address.SegmentValueProvider lowerValueProvider,
Address.SegmentValueProvider upperValueProvider,
Integer prefixLength) |
public IPAddressGenerator()
public IPAddressGenerator(IPv4AddressNetwork ipv4Network, IPv6AddressNetwork ipv6Network)
ipv4Network - ipv6Network - public IPAddressGenerator(IPAddressStringParameters options)
public IPAddress from(InetAddress inetAddress)
public IPAddress from(InetAddress inetAddress, Integer prefixLength)
public IPAddress from(InterfaceAddress interfaceAddress)
public IPAddress from(byte[] bytes)
public IPAddress from(byte[] bytes, int byteStartIndex, int byteEndIndex)
public IPAddress from(byte[] bytes, int byteStartIndex, int byteEndIndex, Integer networkPrefixLength)
public IPAddress from(IPAddress.IPVersion version, Address.SegmentValueProvider lowerValueProvider, Address.SegmentValueProvider upperValueProvider, Integer prefixLength)