@Beta public final class ResourceGroup extends org.onlab.util.Identifier<java.lang.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(java.lang.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(java.lang.String value)
Creates a resource group identifier from the specified string
representation.
|
java.lang.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(java.lang.String value)
value is unique.value - string valuepublic long fingerprint()
public java.lang.String toString()
toString in class org.onlab.util.Identifier<java.lang.Long>public ResourceConsumerId consumerId()
ResourceConsumerconsumerId in interface ResourceConsumerpublic int hashCode()
hashCode in class org.onlab.util.Identifier<java.lang.Long>public boolean equals(java.lang.Object obj)
equals in class org.onlab.util.Identifier<java.lang.Long>