public interface ValueConvertable<V1, V2>
To support caches whose values are convertable, e.g. SoftReference, WeakReference
V1
- source value type, e.g. SoftReference, WeakReferenceV2
- target value type, e.g. value that SoftReference or WeakReference referencedType Params | Return Type | Name and description |
---|---|---|
public V2 |
convertValue(V1 value) convert the original value to the target value |
convert the original value to the target value
value
- the original value
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/runtime/memoize/ValueConvertable.html