@Beta public final class DefaultLabelResource extends Object implements LabelResource
| Constructor and Description |
|---|
DefaultLabelResource(DeviceId deviceId,
LabelResourceId labelResourceId)
Initialize a label resource object.
|
DefaultLabelResource(String deviceId,
long labelResourceId)
Initialize a label resource object.
|
| Modifier and Type | Method and Description |
|---|---|
Annotations |
annotations()
Returns the key/value annotations.
|
DeviceId |
deviceId()
Returns device id.
|
boolean |
equals(Object obj) |
int |
hashCode() |
LabelResourceId |
labelResourceId()
Returns label resource identifier.
|
ProviderId |
providerId()
Returns the identifier of the provider which supplied the entity.
|
String |
toString() |
public DefaultLabelResource(String deviceId, long labelResourceId)
deviceId - device identifierlabelResourceId - label resource idpublic DefaultLabelResource(DeviceId deviceId, LabelResourceId labelResourceId)
deviceId - device identifierlabelResourceId - label resource idpublic DeviceId deviceId()
LabelResourcedeviceId in interface LabelResourcepublic LabelResourceId labelResourceId()
LabelResourcelabelResourceId in interface LabelResourcepublic Annotations annotations()
Annotatedannotations in interface Annotatedpublic ProviderId providerId()
ProvidedproviderId in interface Provided