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 SummaryFields Modifier and Type Field Description static StringADDRESS_NAMEstatic EthernetAddressBROADCASTMACstatic EthernetAddressINVALIDHOSTstatic intSIZE
 - 
Constructor SummaryConstructors 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 SummaryAll 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.DataLinkAddressgetName
 
- 
 
- 
- 
- 
Field Detail- 
BROADCASTMACpublic static final EthernetAddress BROADCASTMAC 
 - 
INVALIDHOSTpublic static final EthernetAddress INVALIDHOST 
 - 
ADDRESS_NAMEpublic static final String ADDRESS_NAME - See Also:
- Constant Field Values
 
 - 
SIZEpublic static final int SIZE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
EthernetAddresspublic 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- 
clonepublic EthernetAddress clone() 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- DataLinkAddress
 
 - 
equalspublic boolean equals(Object obj) - Overrides:
- equalsin class- DataLinkAddress
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- DataLinkAddress
 
 - 
getMacAddresspublic String getMacAddress() 
 
- 
 
-