@ThreadSafe public final class MemoryStaticLongIDFactory extends Object implements ILongIDFactory
ILongIDFactory using a single static
AtomicLong.| Modifier and Type | Field and Description |
|---|---|
static long |
INITIAL_ID
The default start ID to use.
|
| Constructor and Description |
|---|
MemoryStaticLongIDFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getNewID()
Create a new unique long ID.
|
static long |
getNewStaticID() |
int |
hashCode() |
String |
toString() |
public static final long INITIAL_ID
@Nonnegative public long getNewID()
ILongIDFactorygetNewID in interface ILongIDFactory@Nonnegative public static long getNewStaticID()
Copyright © 2014–2017 Philip Helger. All rights reserved.