@Beta public final class ResourceGroup extends org.onlab.util.Identifier<Long> implements ResourceConsumer
This class is immutable.
| 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) |
long |
fingerprint()
Returns the backing value.
|
int |
hashCode() |
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() |
protected 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 ResourceConsumerId consumerId()
ResourceConsumerconsumerId in interface ResourceConsumerpublic int hashCode()
hashCode in class org.onlab.util.Identifier<Long>