Module inet.ipaddr

Class MACAddress

java.lang.Object
inet.ipaddr.Address
inet.ipaddr.mac.MACAddress
All Implemented Interfaces:
AddressComponent, AddressSegmentSeries, AddressComponentRange, AddressDivisionSeries, AddressItem, AddressItemRange, AddressStringDivisionSeries, Serializable, Comparable<AddressItem>, Iterable<MACAddress>

public class MACAddress extends Address implements Iterable<MACAddress>
A MAC address, or a collection of multiple MAC addresses. Each segment can represent a single value or a range of values.

You can construct a MAC address from a byte array, from a long, from a Address.SegmentValueProvider, from a NetworkInterface, from a MACAddressSection of 6 or 8 segments, or from an array of 6 or 8 MACAddressSegment objects.

To construct one from a String use MACAddressString.toAddress() or MACAddressString.getAddress()

Author:
sfoley
See Also: