protected class Table.Remover<R> extends Object implements Table.Visitor<T>
Modifier and Type | Field and Description |
---|---|
protected Predicate<T> |
filter |
protected int |
max_results |
protected boolean |
nullify |
protected int |
num_results |
protected R |
result |
protected BiConsumer<R,T> |
result_accumulator |
protected Supplier<R> |
result_creator |
Constructor and Description |
---|
Remover(boolean nullify,
int max_results,
Predicate<T> filter,
Supplier<R> creator,
BiConsumer<R,T> accumulator) |
Modifier and Type | Method and Description |
---|---|
R |
getResult() |
boolean |
visit(long seqno,
T element,
int row,
int column)
Iteration over the table, used by
Table.forEach(long,long,org.jgroups.util.Table.Visitor) . |
protected final boolean nullify
protected final int max_results
protected int num_results
protected R result
protected BiConsumer<R,T> result_accumulator
public R getResult()
public boolean visit(long seqno, T element, int row, int column)
Table.Visitor
Table.forEach(long,long,org.jgroups.util.Table.Visitor)
.visit
in interface Table.Visitor<T>
seqno
- The current seqnoelement
- The element at matrix[row][column]row
- The current rowcolumn
- The current columnCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.