public abstract class IPAddressNetwork<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends java.net.InetAddress> extends AddressNetwork<S>
Modifier and Type | Class and Description |
---|---|
static class |
IPAddressNetwork.HostIDStringAddressGenerator<T extends HostIdentifierString>
Choose a map of your choice to implement a cache of addresses and/or host names.
|
static class |
IPAddressNetwork.HostNameGenerator
Choose a map of your choice to implement a cache of host names and resolved addresses.
|
class |
IPAddressNetwork.IPAddressCreator |
static class |
IPAddressNetwork.IPAddressGenerator
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.
|
static class |
IPAddressNetwork.IPAddressStringGenerator
Choose a map of your choice to implement a cache of address strings and their associated addresses.
|
AddressNetwork.AddressSegmentCreator<S extends AddressSegment>, AddressNetwork.HostIdentifierStringGenerator<T extends HostIdentifierString>, AddressNetwork.PrefixConfiguration
Modifier and Type | Method and Description |
---|---|
void |
clearCaches() |
IPAddressNetwork.IPAddressCreator |
getAddressCreator() |
T |
getHostMask(int networkPrefixLength) |
R |
getHostMaskSection(int networkPrefixLength) |
abstract IPAddress.IPVersion |
getIPVersion() |
T |
getLoopback() |
T |
getNetworkMask(int networkPrefixLength) |
T |
getNetworkMask(int networkPrefixLength,
boolean withPrefixLength) |
R |
getNetworkMaskSection(int networkPrefixLength) |
static java.lang.String |
getPrefixString(int networkPrefixLength) |
int |
getSegmentHostMask(int segmentPrefixLength) |
int |
getSegmentNetworkMask(int segmentPrefixLength) |
java.lang.String[] |
getStandardLoopbackStrings() |
boolean |
isIPv4() |
boolean |
isIPv6() |
getDefaultPrefixConfiguration, getPrefixConfiguration
public void clearCaches()
clearCaches
in class AddressNetwork<S extends IPAddressSegment>
public boolean isIPv4()
public boolean isIPv6()
public abstract IPAddress.IPVersion getIPVersion()
public IPAddressNetwork.IPAddressCreator getAddressCreator()
getAddressCreator
in class AddressNetwork<S extends IPAddressSegment>
public T getLoopback()
public java.lang.String[] getStandardLoopbackStrings()
public int getSegmentNetworkMask(int segmentPrefixLength)
public int getSegmentHostMask(int segmentPrefixLength)
public T getNetworkMask(int networkPrefixLength)
public T getNetworkMask(int networkPrefixLength, boolean withPrefixLength)
public R getNetworkMaskSection(int networkPrefixLength)
public T getHostMask(int networkPrefixLength)
public R getHostMaskSection(int networkPrefixLength)
public static java.lang.String getPrefixString(int networkPrefixLength)