public class MacAddress
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<MacAddress> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
static MacAddress |
fromBytes(byte[] address)
Creates a new MacAddress from array of bytes.
|
static MacAddress |
fromString(java.lang.String macAddress)
Creates a new MacAddress object from string.
|
int |
hashCode() |
byte[] |
toBytes()
Converts MacAddress to raw array with MAC bytes.
|
java.lang.String |
toHexString()
Returns string representation of MAC address - six hexadecimal numbers, lowercase without separators.
|
java.lang.String |
toStandardString()
Returns string representation of MAC address - six hexadecimal numbers, uppercase and colon separated.
|
java.lang.String |
toString()
Returns human readable representation of MAC address.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<MacAddress> CREATOR
public static MacAddress fromString(java.lang.String macAddress)
macAddress
- String representation of MAC address to be parsed.public static MacAddress fromBytes(byte[] address)
address
- Bye representation of MAC address.public byte[] toBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStandardString()
public java.lang.String toHexString()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable