public class IPv6AddressNetwork extends IPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
Modifier and Type | Class and Description |
---|---|
static class |
IPv6AddressNetwork.IPv6AddressCreator |
IPAddressNetwork.HostIDStringAddressGenerator<T extends HostIdentifierString>, IPAddressNetwork.HostNameGenerator, IPAddressNetwork.IPAddressCreator<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends java.net.InetAddress>, IPAddressNetwork.IPAddressGenerator, IPAddressNetwork.IPAddressStringGenerator
AddressNetwork.AddressSegmentCreator<S extends AddressSegment>, AddressNetwork.HostIdentifierStringGenerator<T extends HostIdentifierString>, AddressNetwork.PrefixConfiguration
Constructor and Description |
---|
IPv6AddressNetwork() |
Modifier and Type | Method and Description |
---|---|
IPv6AddressNetwork.IPv6AddressCreator |
getAddressCreator() |
static AddressNetwork.PrefixConfiguration |
getDefaultPrefixConfiguration()
Gets the default prefix configuration used by this network.
|
IPAddress.IPVersion |
getIPVersion() |
IPv6AddressSection |
getLinkLocalPrefix() |
AddressNetwork.PrefixConfiguration |
getPrefixConfiguration()
This method determines the prefix configuration in use by this network.
|
boolean |
isIPv6() |
static void |
setDefaultPrefixConfiguration(AddressNetwork.PrefixConfiguration config)
Sets the default prefix configuration used by this network.
|
clearCaches, getHostMask, getHostMaskSection, getLoopback, getNetworkMask, getNetworkMask, getNetworkMaskSection, getPrefixString, getSegmentHostMask, getSegmentNetworkMask, getStandardLoopbackStrings, isIPv4
public AddressNetwork.PrefixConfiguration getPrefixConfiguration()
AddressNetwork
The prefix configuration determines whether a prefixed address like 1.2.0.0/16 results in a subnet block (ie 1.2.*.*) or just a single address (1.2.0.0) with a prefix length.
If you wish to change the default behaviour, you can either call inet.ipaddr.ipv4.IPv4AddressNetwork#setDefaultPrefixConfiguration(PrefixConfiguration)
,
or inet.ipaddr.ipv6.IPv6AddressNetwork#setDefaultPrefixConfiguration(PrefixConfiguration)
or you can override this method in your own network and use your own network for your addresses.
getPrefixConfiguration
in class AddressNetwork<IPv6AddressSegment>
AddressNetwork.PrefixConfiguration
public static void setDefaultPrefixConfiguration(AddressNetwork.PrefixConfiguration config)
getDefaultPrefixConfiguration()
,
getPrefixConfiguration()
,
PrefixConfiguration
public static AddressNetwork.PrefixConfiguration getDefaultPrefixConfiguration()
AddressNetwork.getDefaultPrefixConfiguration()
,
PrefixConfiguration
public IPv6AddressSection getLinkLocalPrefix()
public IPv6AddressNetwork.IPv6AddressCreator getAddressCreator()
getAddressCreator
in class IPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
public boolean isIPv6()
isIPv6
in class IPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
public IPAddress.IPVersion getIPVersion()
getIPVersion
in class IPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>