public class Beacon extends Packet
Two beacons are considered equal if their location UUID, major and minor are equal.
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Beacon> |
CREATOR |
packetType| Constructor and Description |
|---|
Beacon(java.util.UUID proximityUUID,
MacAddress macAddress,
int major,
int minor,
int measuredPower,
int rssi) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
MacAddress |
getMacAddress() |
int |
getMajor() |
int |
getMeasuredPower() |
int |
getMinor() |
java.util.UUID |
getProximityUUID() |
int |
getRssi() |
java.lang.String |
getUniqueKey()
Returns unique key for this packet to identify it between other
Packet objects. |
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getPacketTypepublic static final android.os.Parcelable.Creator<Beacon> CREATOR
public Beacon(java.util.UUID proximityUUID,
MacAddress macAddress,
int major,
int minor,
int measuredPower,
int rssi)
public java.util.UUID getProximityUUID()
public MacAddress getMacAddress()
public int getMajor()
public int getMinor()
public int getMeasuredPower()
public int getRssi()
public java.lang.String getUniqueKey()
PacketPacket objects.
Child classes should implement this method.getUniqueKey in class Packetpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int describeContents()
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class Packet