1 6 21 22 package de.schlichtherle.util; 23 24 32 public class ThreadLocalLong extends ThreadLocal { 33 34 public final long getValue() { 35 return ((Holder) get()).value; 36 } 37 38 public final void setValue(long value) { 39 ((Holder) get()).value = value; 40 } 41 42 protected final Object initialValue() { 43 return new Holder(); 44 } 45 46 private final static class Holder { 47 long value; 48 } 49 } | Popular Tags |