org.jopendocument.util.cache
Class CacheResult<V>

java.lang.Object
  extended by org.jopendocument.util.cache.CacheResult<V>
Type Parameters:
V - type of value.

public final class CacheResult<V>
extends java.lang.Object

Represent the result of a query to a cache. Allow one to know if the queried key was not in cache, or the thread was interrupted or of course if the result was in cache.

Author:
Sylvain

Nested Class Summary
static class CacheResult.State
           
 
Method Summary
 V getRes()
           
 CacheResult.State getState()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getRes

public V getRes()

getState

public CacheResult.State getState()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object