- java.lang.Object
-
- inet.ipaddr.AddressNetwork<S>
-
- inet.ipaddr.IPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
-
- inet.ipaddr.ipv6.IPv6AddressNetwork
-
- All Implemented Interfaces:
java.io.Serializable
public class IPv6AddressNetwork extends IPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
Provides methods and types associated with all IPv6 addresses.- Author:
- scfoley
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IPv6AddressNetwork.IPv6AddressCreator
-
Nested classes/interfaces inherited from class inet.ipaddr.IPAddressNetwork
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
-
Nested classes/interfaces inherited from class inet.ipaddr.AddressNetwork
AddressNetwork.AddressSegmentCreator<S extends AddressSegment>, AddressNetwork.HostIdentifierStringGenerator<T extends HostIdentifierString>, AddressNetwork.PrefixConfiguration
-
-
Constructor Summary
Constructors Constructor Description IPv6AddressNetwork()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IPv6AddressNetwork.IPv6AddressCreator
getAddressCreator()
static AddressNetwork.PrefixConfiguration
getDefaultPrefixConfiguration()
Gets the default prefix configuration used by this network type and version.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.-
Methods inherited from class inet.ipaddr.IPAddressNetwork
clearCaches, getHostMask, getHostMaskSection, getLoopback, getNetworkAddress, getNetworkMask, getNetworkMask, getNetworkMaskSection, getPrefixString, getSegmentHostMask, getSegmentNetworkMask, getStandardLoopbackStrings, isIPv4
-
Methods inherited from class inet.ipaddr.AddressNetwork
setSegmentCaching
-
-
-
-
Method Detail
-
getPrefixConfiguration
public AddressNetwork.PrefixConfiguration getPrefixConfiguration()
Description copied from class:AddressNetwork
This method determines the prefix configuration in use by this network.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
IPv4AddressNetwork.setDefaultPrefixConfiguration(PrefixConfiguration)
, orsetDefaultPrefixConfiguration(PrefixConfiguration)
or you can override this method in your own network and use your own network for your addresses.- Specified by:
getPrefixConfiguration
in classAddressNetwork<IPv6AddressSegment>
- See Also:
AddressNetwork.PrefixConfiguration
-
setDefaultPrefixConfiguration
public static void setDefaultPrefixConfiguration(AddressNetwork.PrefixConfiguration config)
Sets the default prefix configuration used by this network.
-
getDefaultPrefixConfiguration
public static AddressNetwork.PrefixConfiguration getDefaultPrefixConfiguration()
Gets the default prefix configuration used by this network type and version.
-
getLinkLocalPrefix
public IPv6AddressSection getLinkLocalPrefix()
-
getAddressCreator
public IPv6AddressNetwork.IPv6AddressCreator getAddressCreator()
- Overrides:
getAddressCreator
in classIPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
-
isIPv6
public boolean isIPv6()
- Overrides:
isIPv6
in classIPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
-
getIPVersion
public IPAddress.IPVersion getIPVersion()
- Specified by:
getIPVersion
in classIPAddressNetwork<IPv6Address,IPv6AddressSection,IPv4AddressSection,IPv6AddressSegment,java.net.Inet6Address>
-
-