@Beta
public class LabelResourceRequest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LabelResourceRequest.Type
Request type.
|
| Constructor and Description |
|---|
LabelResourceRequest(DeviceId deviceId,
LabelResourceRequest.Type type,
long applyNum,
com.google.common.collect.ImmutableSet<LabelResource> releaseCollection)
Creates LabelResourceRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
applyNum()
Returns apply label number.
|
DeviceId |
deviceId()
Returns a device id.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.util.Collection<LabelResource> |
releaseCollection()
Returns the collection of release labels.
|
java.lang.String |
toString() |
LabelResourceRequest.Type |
type()
Returns request type.
|
public LabelResourceRequest(DeviceId deviceId, LabelResourceRequest.Type type, long applyNum, com.google.common.collect.ImmutableSet<LabelResource> releaseCollection)
deviceId - device identifiertype - request typeapplyNum - apply the number of labelsreleaseCollection - Set of released labelpublic DeviceId deviceId()
public LabelResourceRequest.Type type()
public long applyNum()
public java.util.Collection<LabelResource> releaseCollection()
public 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