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() |
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 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 © 2016. All rights reserved.