- java.lang.Object
-
- inet.ipaddr.AddressNetwork<MACAddressSegment>
-
- inet.ipaddr.mac.MACAddressNetwork
-
- All Implemented Interfaces:
java.io.Serializable
public class MACAddressNetwork extends AddressNetwork<MACAddressSegment>
Provides methods and types associated with all MAC addresses.- Author:
- scfoley
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMACAddressNetwork.MACAddressCreator-
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 MACAddressNetwork()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MACAddressNetwork.MACAddressCreatorgetAddressCreator()static AddressNetwork.PrefixConfigurationgetDefaultPrefixConfiguration()Gets the default prefix configuration used by this network type and version.AddressNetwork.PrefixConfigurationgetPrefixConfiguration()This method determines the prefix configuration in use by this network.static voidsetDefaultPrefixConfiguration(AddressNetwork.PrefixConfiguration config)Sets the default prefix configuration used by this network.-
Methods inherited from class inet.ipaddr.AddressNetwork
clearCaches, setSegmentCaching
-
-
-
-
Method Detail
-
getAddressCreator
public MACAddressNetwork.MACAddressCreator getAddressCreator()
- Specified by:
getAddressCreatorin classAddressNetwork<MACAddressSegment>
-
getPrefixConfiguration
public AddressNetwork.PrefixConfiguration 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), orIPv6AddressNetwork.setDefaultPrefixConfiguration(PrefixConfiguration)or you can override this method in your own network and use your own network for your addresses.- Specified by:
getPrefixConfigurationin classAddressNetwork<MACAddressSegment>- 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.
-
-