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 |
---|---|
boolean |
abortEarly() |
void |
allocated(long heapSize) |
V |
apply(V v) |
V |
apply(V replacing,
V update) |
static <V> UpdateFunction.Simple<V> |
of(java.util.function.BiFunction<V,V,V> f) |
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 boolean abortEarly()
abortEarly
in interface UpdateFunction<V,V>
public void allocated(long heapSize)
allocated
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-2021 The Apache Software Foundation