live.threads
Class ThreadedUserAction.IDFactory
java.lang.Object
live.threads.ThreadedUserAction.IDFactory
- Enclosing class:
- ThreadedUserAction
- private static final class ThreadedUserAction.IDFactory
- extends Object
This is a wrapper class for an int; Integer
won't
work because you can't change it; See the init function for
a discussion of why this is (or rather, may be) necessary.
Field Summary |
private int |
value
|
Method Summary |
int |
nextID()
Returns and then increments value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
private int value
ThreadedUserAction.IDFactory
public ThreadedUserAction.IDFactory()
- Initializes the value to 0.
nextID
public int nextID()
- Returns and then increments value.
- Returns:
- int Current ID value
Copyright © 2005