Class IPv6AddressNetwork
java.lang.Object
inet.ipaddr.AddressNetwork<IPv6AddressSegment>
inet.ipaddr.IPAddressNetwork<IPv6Address, IPv6AddressSection, IPv4AddressSection, IPv6AddressSegment, Inet6Address>
inet.ipaddr.ipv6.IPv6AddressNetwork
- All Implemented Interfaces:
Serializable
public class IPv6AddressNetwork
extends IPAddressNetwork<IPv6Address, IPv6AddressSection, IPv4AddressSection, IPv6AddressSegment, Inet6Address>
Provides methods and types associated with all IPv6 addresses.
- Author:
- scfoley
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class IPAddressNetwork
IPAddressNetwork.HostIDStringAddressGenerator<T>, IPAddressNetwork.HostNameGenerator, IPAddressNetwork.IPAddressCreator<T,R, E, S, J>, IPAddressNetwork.IPAddressGenerator, IPAddressNetwork.IPAddressStringGenerator Nested classes/interfaces inherited from class AddressNetwork
AddressNetwork.AddressSegmentCreator<S>, AddressNetwork.HostIdentifierStringGenerator<T>, AddressNetwork.PrefixConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default prefix configuration used by this network type and version.This method determines the prefix configuration in use by this network.booleanisIPv6()static voidSets the default prefix configuration used by this network.Methods inherited from class IPAddressNetwork
clearCaches, getHostMask, getHostMaskSection, getLoopback, getNetworkAddress, getNetworkMask, getNetworkMask, getNetworkMaskSection, getPrefixString, getSegmentHostMask, getSegmentNetworkMask, getStandardLoopbackStrings, isIPv4Methods inherited from class AddressNetwork
setSegmentCaching
-
Constructor Details
-
IPv6AddressNetwork
public IPv6AddressNetwork()
-
-
Method Details
-
getPrefixConfiguration
Description copied from class:AddressNetworkThis 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:
getPrefixConfigurationin classAddressNetwork<IPv6AddressSegment>- See Also:
-
setDefaultPrefixConfiguration
Sets the default prefix configuration used by this network.- See Also:
-
getDefaultPrefixConfiguration
Gets the default prefix configuration used by this network type and version.- See Also:
-
getLinkLocalPrefix
-
getAddressCreator
- Overrides:
getAddressCreatorin classIPAddressNetwork<IPv6Address, IPv6AddressSection, IPv4AddressSection, IPv6AddressSegment, Inet6Address>
-
isIPv6
public boolean isIPv6()- Overrides:
isIPv6in classIPAddressNetwork<IPv6Address, IPv6AddressSection, IPv4AddressSection, IPv6AddressSegment, Inet6Address>
-
getIPVersion
- Specified by:
getIPVersionin classIPAddressNetwork<IPv6Address, IPv6AddressSection, IPv4AddressSection, IPv6AddressSegment, Inet6Address>
-