public class Identifier extends Object implements Serializable, Comparable<Identifier>
| Constructor and Description |
|---|
Identifier()
Creates a new, random Identifier using the default SecureRandom instance.
|
Identifier(long hi,
long lo) |
Identifier(Random random)
Creates a new, random Identifier using the provided Random source.
|
Identifier(String encoded) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Identifier other)
Unsigned ordering.
|
boolean |
equals(Identifier other) |
boolean |
equals(Object O) |
long |
getHi() |
long |
getLo() |
int |
hashCode() |
String |
toString()
The external representation is a string of characters encoded in base 57, with
the first 11 characters for "hi" and the last 11 characters for "lo".
|
static Identifier |
valueOf(String encoded) |
public Identifier()
public Identifier(Random random)
public Identifier(long hi,
long lo)
public Identifier(String encoded) throws IllegalArgumentException
IllegalArgumentExceptiontoString()public static Identifier valueOf(String encoded) throws IllegalArgumentException
IllegalArgumentExceptiontoString()public boolean equals(Identifier other)
public String toString()
public int compareTo(Identifier other)
compareTo in interface Comparable<Identifier>public long getHi()
public long getLo()
Copyright © 2016. All rights reserved.