public class EthernetAddress extends DataLinkAddress
Modifier and Type | Field and Description |
---|---|
static String |
addressName |
static EthernetAddress |
BROADCASTMAC |
static EthernetAddress |
INVALIDHOST |
static int |
SIZE |
Constructor and 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
|
Modifier and Type | Method and Description |
---|---|
EthernetAddress |
clone()
Used to copy the DataLinkAddress in a polymorphic way
|
boolean |
equals(Object obj) |
String |
getMacAddress() |
byte[] |
getValue()
Return the Ethernet Mac address in byte array format
|
int |
hashCode() |
String |
toString() |
getName
public static final EthernetAddress BROADCASTMAC
public static final EthernetAddress INVALIDHOST
public static final String addressName
public static final int SIZE
public EthernetAddress(byte[] macAddress) throws ConstructionException
macAddress
- A byte array in big endian format
representing the Ethernet MAC AddressConstructionException
public EthernetAddress clone()
DataLinkAddress
clone
in class DataLinkAddress
public byte[] getValue()
public int hashCode()
hashCode
in class DataLinkAddress
public boolean equals(Object obj)
equals
in class DataLinkAddress
public String toString()
toString
in class DataLinkAddress
public String getMacAddress()
Copyright © 2019 OpenDaylight. All rights reserved.