public final class HardwareAddress extends Object
| Constructor and Description |
|---|
HardwareAddress(short type,
short length,
byte[] address) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
byte[] |
getAddress() |
short |
getLength() |
String |
getNativeRepresentation()
Create the string representation of the hardware address native to the
corresponding address type.
|
short |
getType() |
int |
hashCode() |
String |
toString()
Create a string representation of the hardware address.
|
static HardwareAddress |
valueOf(String s)
Parses a string representation of a hardware address according to the
specification given in
toString(). |
public HardwareAddress(short type,
short length,
byte[] address)
type - length - address - public byte[] getAddress()
public short getLength()
public short getType()
public int hashCode()
hashCode in class ObjectObject.hashCode()public String getNativeRepresentation()
a1:a2:a3:a4:a5:a6.Object.toString()public String toString()
t/a1:a2:a3...t represents the address type (decimal) and
an represent the address bytes (hexadecimal).toString in class ObjectObject.toString()public static HardwareAddress valueOf(String s)
toString().s - ParseExceptionCopyright © 2021. All rights reserved.