public static final class UpdateFunction.Simple<V> extends java.lang.Object implements UpdateFunction<V,V>
UpdateFunction.Simple<V>
noOp
Constructor and Description |
---|
Simple(java.util.function.BiFunction<V,V,V> wrapped) |
Modifier and Type | Method and Description |
---|---|
V |
apply(V v) |
V |
apply(V replacing,
V update) |
static <V> UpdateFunction.Simple<V> |
of(java.util.function.BiFunction<V,V,V> f) |
void |
onAllocatedOnHeap(long heapSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
noOp
public V apply(V replacing, V update)
apply
in interface UpdateFunction<V,V>
replacing
- the value in the original tree we have matchedupdate
- the value in the updating collection that matchedpublic void onAllocatedOnHeap(long heapSize)
onAllocatedOnHeap
in interface UpdateFunction<V,V>
heapSize
- extra heap space allocated (over previous tree)public static <V> UpdateFunction.Simple<V> of(java.util.function.BiFunction<V,V,V> f)
Copyright © 2009-2022 The Apache Software Foundation