@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()
LabelResource
deviceId
in interface LabelResource
public LabelResourceId labelResourceId()
LabelResource
labelResourceId
in interface LabelResource
public Annotations annotations()
Annotated
annotations
in interface Annotated
public ProviderId providerId()
Provided
providerId
in interface Provided
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object