Key - Key Node type.public final class CkdFunctionResultCacheDecorator<Key> extends java.lang.Object implements CkdFunction<Key>
If the same child of the same parent is requested a second time, the original result will be returned.
| Modifier and Type | Method and Description |
|---|---|
Key |
deriveChildKey(Key parent,
int childIndex)
Derives the child at the given index on the parent.
|
static <Key> CkdFunction<Key> |
newCacheOf(CkdFunction<Key> decorated) |
public static <Key> CkdFunction<Key> newCacheOf(CkdFunction<Key> decorated)
public Key deriveChildKey(Key parent, int childIndex)
CkdFunctionderiveChildKey in interface CkdFunction<Key>parent - The parent to find the child ofchildIndex - The index of the childKeyNode for the child