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) |
getPacketType
public 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()
Packet
Packet
objects.
Child classes should implement this method.getUniqueKey
in class Packet
public java.lang.String toString()
toString
in class java.lang.Object
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()
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Packet