public class IdGenerator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.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.
|