Class EthernetAddress
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.libraries.liblldp.DataLinkAddress
 - 
- org.opendaylight.openflowplugin.libraries.liblldp.EthernetAddress
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable
public class EthernetAddress extends DataLinkAddress
- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringADDRESS_NAMEstatic EthernetAddressBROADCASTMACstatic EthernetAddressINVALIDHOSTstatic intSIZE 
- 
Constructor Summary
Constructors Constructor Description EthernetAddress(byte[] macAddress)Public constructor for an Ethernet MAC address starting from the byte constituing the address, the constructor validate the size of the arrive to make sure it met the expected size. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EthernetAddressclone()booleanequals(Object obj)StringgetMacAddress()inthashCode()StringtoString()- 
Methods inherited from class org.opendaylight.openflowplugin.libraries.liblldp.DataLinkAddress
getName 
 - 
 
 - 
 
- 
- 
Field Detail
- 
BROADCASTMAC
public static final EthernetAddress BROADCASTMAC
 
- 
INVALIDHOST
public static final EthernetAddress INVALIDHOST
 
- 
ADDRESS_NAME
public static final String ADDRESS_NAME
- See Also:
 - Constant Field Values
 
 
- 
SIZE
public static final int SIZE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
EthernetAddress
public EthernetAddress(byte[] macAddress)
Public constructor for an Ethernet MAC address starting from the byte constituing the address, the constructor validate the size of the arrive to make sure it met the expected size.- Parameters:
 macAddress- A byte array in big endian format representing the Ethernet MAC Address
 
 - 
 
- 
Method Detail
- 
clone
public EthernetAddress clone()
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classDataLinkAddress
 
- 
equals
public boolean equals(Object obj)
- Overrides:
 equalsin classDataLinkAddress
 
- 
toString
public String toString()
- Overrides:
 toStringin classDataLinkAddress
 
- 
getMacAddress
public String getMacAddress()
 
 - 
 
 -