@Beta public final class ResourceGroup extends Identifier<java.lang.Long> implements ResourceConsumer
This class is immutable.
identifier
Modifier | Constructor and Description |
---|---|
protected |
ResourceGroup()
Constructor for serializer.
|
protected |
ResourceGroup(long value)
Constructs the ID corresponding to a given long value.
|
Modifier and Type | Method and Description |
---|---|
ResourceConsumerId |
consumerId()
Returns ID of this consumer.
|
boolean |
equals(java.lang.Object obj)
Compares two device key identifiers for equality.
|
long |
fingerprint()
Returns the backing value.
|
int |
hashCode()
Returns the hashcode of the identifier.
|
static ResourceGroup |
of(long value)
Creates a resource group identifier from the specified long
representation.
|
static ResourceGroup |
of(java.lang.String value)
Creates a resource group identifier from the specified string
representation.
|
java.lang.String |
toString()
Returns a string representation of a DeviceKeyId.
|
id
protected ResourceGroup()
protected ResourceGroup(long value)
value
- the underlying value of this IDpublic static ResourceGroup of(long value)
value
- long valuepublic static ResourceGroup of(java.lang.String value)
value
is unique.value
- string valuepublic long fingerprint()
public java.lang.String toString()
Identifier
toString
in class Identifier<java.lang.Long>
public ResourceConsumerId consumerId()
ResourceConsumer
consumerId
in interface ResourceConsumer
public int hashCode()
Identifier
hashCode
in class Identifier<java.lang.Long>
public boolean equals(java.lang.Object obj)
Identifier
equals
in class Identifier<java.lang.Long>
obj
- to compare against