public class Beacon
extends java.lang.Object
implements android.os.Parcelable
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 |
| 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() |
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
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 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()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable