TrueZIP 6.8.2

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:
$Id: ThreadLocalLong.java 5e709f50671d 2010/11/05 11:52:07 christian $
Author:
Christian Schlichtherle

Nested Class Summary
private static class ThreadLocalLong.Holder
           
 
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

TrueZIP 6.8.2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.