@Beta public final class DefaultLabelResource extends java.lang.Object implements LabelResource
| Constructor and Description |
|---|
DefaultLabelResource(DeviceId deviceId,
LabelResourceId labelResourceId)
Initialize a label resource object.
|
DefaultLabelResource(java.lang.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(java.lang.Object obj) |
int |
hashCode() |
LabelResourceId |
labelResourceId()
Returns label resource identifier.
|
ProviderId |
providerId()
Returns the identifier of the provider which supplied the entity.
|
java.lang.String |
toString() |
public DefaultLabelResource(java.lang.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 Providedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object