Top Description Methods
org.codehaus.groovy.runtime.memoize

public Interface ValueConvertable<V1, V2>

Known Direct Implementers
org.codehaus.groovy.runtime.memoize.CommonCache, org.codehaus.groovy.runtime.memoize.ConcurrentCommonCache, org.codehaus.groovy.runtime.memoize.StampedCommonCache
Type Parameters
<V1>
source value type, e.g. SoftReference, WeakReference
<V2>
target value type, e.g. value that SoftReference or WeakReference referenced

To support caches whose values are convertable, e.g. SoftReference, WeakReference

Method Summary

Modifier and TypeMethod and Description
public V2

Returns:

the converted value
convertValue
(V1
the original value
value
)

convert the original value to the target value

Method Detail

convertValueback to summary
public V2 convertValue(V1 value)

convert the original value to the target value

Parameters
value:V1

the original value

Returns:V2

the converted value