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