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