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 String
ADDRESS_NAME
static EthernetAddress
BROADCASTMAC
static EthernetAddress
INVALIDHOST
static int
SIZE
-
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 EthernetAddress
clone()
boolean
equals(Object obj)
String
getMacAddress()
int
hashCode()
String
toString()
-
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:
hashCode
in classDataLinkAddress
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDataLinkAddress
-
toString
public String toString()
- Overrides:
toString
in classDataLinkAddress
-
getMacAddress
public String getMacAddress()
-
-