Rakesh API

org.rakeshv.utils
Class DynamicCache.Value<V>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference<V>
          extended by org.rakeshv.utils.DynamicCache.Value<V>
Enclosing class:
DynamicCache<K,V>

private class DynamicCache.Value<V>
extends java.lang.ref.SoftReference<V>

A sub-class of SoftReference used to represent the value stored in the DynamicCache.map.


Field Summary
private  K key
          The key associated with the value.
 
Constructor Summary
DynamicCache.Value(K key, V value, java.lang.ref.ReferenceQueue<V> queue)
          Create a new instance of the value object.
 
Method Summary
 
Methods inherited from class java.lang.ref.SoftReference
get
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private final K key
The key associated with the value.

Constructor Detail

DynamicCache.Value

public DynamicCache.Value(K key,
                          V value,
                          java.lang.ref.ReferenceQueue<V> queue)
Create a new instance of the value object.


Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan