Package org.jgroups.util
Class Buffer.Remover<R>
- java.lang.Object
-
- org.jgroups.util.Buffer.Remover<R>
-
- All Implemented Interfaces:
Buffer.Visitor<T>
protected class Buffer.Remover<R> extends java.lang.Object implements Buffer.Visitor<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Predicate<T>
filter
protected int
max_results
protected int
num_results
protected R
result
protected java.util.function.BiConsumer<R,T>
result_accumulator
protected java.util.function.Supplier<R>
result_creator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
getResult()
boolean
visit(long seqno, T element)
Iteration over the table, used byDynamicBuffer.forEach(long, long, Buffer.Visitor, boolean)
.
-
-
-
Method Detail
-
getResult
public R getResult()
-
visit
public boolean visit(long seqno, T element)
Description copied from interface:Buffer.Visitor
Iteration over the table, used byDynamicBuffer.forEach(long, long, Buffer.Visitor, boolean)
.- Specified by:
visit
in interfaceBuffer.Visitor<R>
- Parameters:
seqno
- The current seqnoelement
- The element at matrix[row][column]- Returns:
- True if we should continue the iteration, false if we should break out of the iteration
-
-