public class ReflectionUuidNameMap extends java.lang.Object implements UuidNameMap
UuidNameMap
that takes a Class
object
and through reflection attempts to parse out all the static UUID members, for example
on Uuids
.
Provide an instance to BleManagerConfig.uuidNameMaps
if desired.BleManagerConfig.uuidNameMaps
,
BasicUuidNameMap
Constructor and Description |
---|
ReflectionUuidNameMap(java.lang.Class<?> classWithStaticUuids) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUuidName(java.lang.String uuid)
Returns the name of the
UUID to be used for logging/debugging purposes, for example "BATTERY_LEVEL". |
public ReflectionUuidNameMap(java.lang.Class<?> classWithStaticUuids)
public java.lang.String getUuidName(java.lang.String uuid)
UuidNameMap
UUID
to be used for logging/debugging purposes, for example "BATTERY_LEVEL".getUuidName
in interface UuidNameMap