@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, wait
getProvider
protected 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()
Id
Long
representation of this Id
.@Nonnull public String toHexString()
Id
String
representation of this Id
, as an hexadecimal value.toHexString
in interface Id
Copyright © 2013–2019 Atlanmod. All rights reserved.