T
- type of the object the identifier identifies.I
- type of the identifier value. It should be an immutable type. It
is critical this type implements equals() and hashCode() correctly.public final class Id<T,I extends Serializable> extends Object implements Distributable, Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
I |
getValue()
Gets the internal representation.
|
int |
hashCode() |
String |
toString() |
static <T,I extends Serializable> |
valueOf(I value)
Creates an identifier with the given value.
|
public static <T,I extends Serializable> Id<T,I> valueOf(I value)
value
- value.public I getValue()
Copyright © 2016. All Rights Reserved.