On this page
[Java] Interface ValueConvertable<V1, V2>
public interface ValueConvertable<V1, V2>
To support caches whose values are convertable, e.g. SoftReference, WeakReference
- Type Parameters:
V1
- source value type, e.g. SoftReference, WeakReferenceV2
- target value type, e.g. value that SoftReference or WeakReference referenced
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public V2 |
convertValue(V1 value) convert the original value to the target value |
Method Detail
public V2 convertValue(V1 value)
convert the original value to the target value
- Parameters:
value
- the original value
- Returns:
- the converted value
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/codehaus/groovy/runtime/memoize/ValueConvertable.html