public class EthernetAddress extends DataLinkAddress
Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS_NAME |
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() |
boolean |
equals(Object obj) |
String |
getMacAddress() |
int |
hashCode() |
String |
toString() |
getName
public static final EthernetAddress BROADCASTMAC
public static final EthernetAddress INVALIDHOST
public static final String ADDRESS_NAME
public static final int SIZE
public EthernetAddress(byte[] macAddress)
macAddress
- A byte array in big endian format representing the Ethernet MAC Addresspublic EthernetAddress clone()
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.