public abstract class IPAddressNetwork<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends 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.
|
static class |
IPAddressNetwork.IPAddressCreator<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends InetAddress> |
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<T,R,E,S,J> |
getAddressCreator() |
T |
getHostMask(int networkPrefixLength) |
R |
getHostMaskSection(int networkPrefixLength) |
abstract IPAddress.IPVersion |
getIPVersion() |
T |
getLoopback() |
T |
getNetworkAddress(int networkPrefixLength)
The network address is the subnet of all address with the same network mask.
|
T |
getNetworkMask(int networkPrefixLength)
The tne network mask is a single address with zeros corresponding to the host section of the address.
|
T |
getNetworkMask(int networkPrefixLength,
boolean withPrefixLength) |
R |
getNetworkMaskSection(int networkPrefixLength) |
static String |
getPrefixString(int networkPrefixLength) |
int |
getSegmentHostMask(int segmentPrefixLength) |
int |
getSegmentNetworkMask(int segmentPrefixLength) |
String[] |
getStandardLoopbackStrings() |
boolean |
isIPv4() |
boolean |
isIPv6() |
getDefaultPrefixConfiguration, getPrefixConfiguration, setSegmentCaching
public void clearCaches()
clearCaches
in class AddressNetwork<S extends IPAddressSegment>
public boolean isIPv4()
public boolean isIPv6()
public abstract IPAddress.IPVersion getIPVersion()
public IPAddressNetwork.IPAddressCreator<T,R,E,S,J> getAddressCreator()
getAddressCreator
in class AddressNetwork<S extends IPAddressSegment>
public T getLoopback()
public String[] getStandardLoopbackStrings()
public int getSegmentNetworkMask(int segmentPrefixLength)
public int getSegmentHostMask(int segmentPrefixLength)
public T getNetworkMask(int networkPrefixLength)
networkPrefixLength
- public T getNetworkAddress(int networkPrefixLength)
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 String getPrefixString(int networkPrefixLength)