public class ResolvedId
extends java.lang.Object
implements java.io.Serializable
Device
object. It can be useful while
resolving shuffled devices.Modifier and Type | Method and Description |
---|---|
static ResolvedId |
create(java.lang.String deviceId,
java.lang.String uniqueId,
DeviceProfile deviceProfile)
Creates a connection between device ID and unique ID.
|
boolean |
equals(java.lang.Object o) |
DeviceProfile |
getDeviceProfile() |
EddystoneUid |
getEddystoneUID()
Returns device ID in Eddystone format.
|
IBeaconId |
getIBeaconId()
Returns device ID in iBeacon format.
|
java.lang.String |
getUniqueId() |
int |
hashCode() |
java.lang.String |
toString() |
public static ResolvedId create(java.lang.String deviceId, java.lang.String uniqueId, DeviceProfile deviceProfile)
deviceId
- the device ID in Eddystone or iBeacon format.uniqueId
- the device's unique ID.deviceProfile
- device's profilepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public IBeaconId getIBeaconId()
java.lang.IllegalArgumentException
- if device ID has format other than iBeacon.public EddystoneUid getEddystoneUID()
java.lang.IllegalArgumentException
- if device ID has format other than Eddystone.public DeviceProfile getDeviceProfile()
public java.lang.String getUniqueId()