public class MacAddress extends Object
| Constructor and Description |
|---|
MacAddress()
Create MAC address with value of 00:00:00:00:00:00
|
MacAddress(byte[] src)
Create MAC address object from byte array
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MacAddress dst)
Compare this MAC address to another MAC address.
|
boolean |
equals(Object arg0) |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isNull()
Check if MAC address is all zeroes
|
static MacAddress |
parseMacAddress(String str)
Parse MAC address string representation.
|
String |
toString() |
public MacAddress()
public MacAddress(byte[] src)
src - byte array containing MAC address valuepublic boolean isNull()
public static MacAddress parseMacAddress(String str) throws MacAddressFormatException
str - MAC address stringMacAddressFormatException - if MAC address sting is invalidpublic byte[] getValue()
public int compareTo(MacAddress dst)
dst - another @see MacAddress to be compared with.Copyright © 2018. All rights reserved.