@Immutable @ParametersAreNonnullByDefault public class LongId extends Object implements Id
Id with a long representation.| Modifier | Constructor and Description |
|---|---|
protected |
LongId(long value)
Constructs a new
LongId with its long representation. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Id id) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toHexString()
Returns the
String representation of this Id, as an hexadecimal value. |
long |
toLong()
Returns the
Long representation of this Id. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetProviderprotected LongId(long value)
LongId with its long representation.value - the long representation of this identifierpublic int compareTo(Id id)
compareTo in interface Comparable<Id>public long toLong()
IdLong representation of this Id.@Nonnull public String toHexString()
IdString representation of this Id, as an hexadecimal value.toHexString in interface IdCopyright © 2013–2019 Atlanmod. All rights reserved.