@Beta public final class ResourceGroup extends Identifier<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(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(String value)
Creates a resource group identifier from the specified string
representation.
|
String |
toString()
Returns a string representation of a DeviceKeyId.
|
idprotected ResourceGroup()
protected ResourceGroup(long value)
value - the underlying value of this IDpublic static ResourceGroup of(long value)
value - long valuepublic static ResourceGroup of(String value)
value is unique.value - string valuepublic long fingerprint()
public String toString()
IdentifiertoString in class Identifier<Long>public ResourceConsumerId consumerId()
ResourceConsumerconsumerId in interface ResourceConsumerpublic int hashCode()
IdentifierhashCode in class Identifier<Long>public boolean equals(Object obj)
Identifierequals in class Identifier<Long>obj - to compare against