public final class BleUuid
extends java.lang.Object
UUID
along with the BleUuid.UuidSize
of the UUID
. The UUID
class is always formatted
as a 128-bit UUID, but with scan records, you can have a 16, 32, or 128 bit UUID. Use BleUuid.UuidSize
to specify this, so the packet
will be built properly.
If you use BleScanRecord
to create your scan packets, you will not need to use this class directly.Modifier and Type | Class and Description |
---|---|
static class |
BleUuid.UuidSize
Enumeration used to dictate the "size" of a
UUID when building a scan packet. |
Constructor and Description |
---|
BleUuid(java.util.UUID uuid,
BleUuid.UuidSize size) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getLeastSignificantBits()
You shouldn't need to call this yourself, but it's left public for flexibility.
|
long |
getMostSignificantBits()
You shouldn't need to call this yourself, but it's left public for flexibility.
|
int |
hashCode() |
java.util.UUID |
uuid()
Returns the backing
UUID |
BleUuid.UuidSize |
uuidSize()
Returns the
BleUuid.UuidSize of the backing UUID |
public BleUuid(java.util.UUID uuid, BleUuid.UuidSize size)
public final java.util.UUID uuid()
UUID
public final BleUuid.UuidSize uuidSize()
BleUuid.UuidSize
of the backing UUID
public final long getMostSignificantBits()
UUID
.public final long getLeastSignificantBits()
UUID
.public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object