de.nava.informa.utils.manager.memory
Class IdGenerator
java.lang.Object
de.nava.informa.utils.manager.memory.IdGenerator
public final class IdGenerator
- extends Object
Generator of ID sequence. Each application run it starts from 1. We don't need to
have unique identifiers across invocations and the implemented approach looks
sufficient.
- Author:
- Aleksey Gureev (spyromus@noizeramp.com)
Method Summary |
static long |
getNextId()
Returns next available ID value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getNextId
public static long getNextId()
- Returns next available ID value.
- Returns:
- available ID.
Copyright © 2002-2007 Niko Schmuck.
All Rights Reserved.