public final class LongSummingReducer extends Object implements BiFunction<Node<Long>,Collection<Long>,Long>
BiFunction
that reduces a tree of Long
s by summing.Modifier and Type | Method and Description |
---|---|
Long |
apply(Node<Long> node,
Collection<Long> childResults) |
static LongSummingReducer |
get() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen
public Long apply(Node<Long> node, Collection<Long> childResults)
apply
in interface BiFunction<Node<Long>,Collection<Long>,Long>
public static LongSummingReducer get()
LongSummingReducer
Copyright © 2014–2016. All rights reserved.