org.faktorips.runtime.caching
Interface IComputable<K,V>

All Known Implementing Classes:
AbstractComputable, Memoizer, SimpleCache

public interface IComputable<K,V>

Interface to compute objects of type V identified by a key of type K

Author:
dirmeier

Method Summary
 V compute(K key)
          Compute an object of type V identified by the key of type K
 Class<? super V> getValueClass()
          Getting the Class of the value this computable produces.
 

Method Detail

compute

V compute(K key)
          throws InterruptedException
Compute an object of type V identified by the key of type K

Parameters:
key - the key to identify the object
Returns:
the computed Object of type V
Throws:
InterruptedException - When computation was interrupted

getValueClass

Class<? super V> getValueClass()
Getting the Class of the value this computable produces.



Copyright © 2015. All rights reserved.