live.threads
Class ThreadedUserAction.IDFactory

java.lang.Object
  extended bylive.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
           
 
Constructor Summary
ThreadedUserAction.IDFactory()
          Initializes the value to 0.
 
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
 

Field Detail

value

private int value
Constructor Detail

ThreadedUserAction.IDFactory

public ThreadedUserAction.IDFactory()
Initializes the value to 0.

Method Detail

nextID

public int nextID()
Returns and then increments value.

Returns:
int Current ID value


Copyright © 2005