de.schlichtherle.util
Class ThreadLocalLong

java.lang.Object
  extended by java.lang.ThreadLocal
      extended by de.schlichtherle.util.ThreadLocalLong

public class ThreadLocalLong
extends ThreadLocal

A long which's value is local to each thread. Its initial value is 0.

Since:
TrueZIP 6.2
Version:
TrueZIP 6.7
Author:
Christian Schlichtherle

Constructor Summary
ThreadLocalLong()
           
 
Method Summary
 long getValue()
           
protected  Object initialValue()
           
 void setValue(long value)
           
 
Methods inherited from class java.lang.ThreadLocal
get, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalLong

public ThreadLocalLong()
Method Detail

getValue

public final long getValue()

setValue

public final void setValue(long value)

initialValue

protected final Object initialValue()
Overrides:
initialValue in class ThreadLocal