public class IdGenerator extends Object
Modifier and Type | Method and Description |
---|---|
static String |
format(int id)
Format an id created by this class as a hex string.
|
static int |
mix(int salt,
int in)
A very simple bit permutation to mask a simple incrementer.
|
int |
next()
Produce the next identifier.
|
public static String format(int id)
public int next()
public static int mix(int salt, int in)