public class Identifier<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
identifier |
| Modifier | Constructor and Description |
|---|---|
protected |
Identifier()
Constructor for serialization.
|
protected |
Identifier(T value)
Constructs an identifier backed by the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares two device key identifiers for equality.
|
int |
hashCode()
Returns the hashcode of the identifier.
|
T |
id()
Returns the backing identifier value.
|
java.lang.String |
toString()
Returns a string representation of a DeviceKeyId.
|
protected final T identifier
protected Identifier()
protected Identifier(T value)
value - the backing valuepublic T id()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - to compare againstpublic java.lang.String toString()
toString in class java.lang.Object