org.jgroups.util
Class Table.Remover

java.lang.Object
  extended by org.jgroups.util.Table.Remover
All Implemented Interfaces:
Table.Visitor<T>
Enclosing class:
Table<T>

protected class Table.Remover
extends java.lang.Object
implements Table.Visitor<T>


Field Summary
protected  java.util.List<T> list
           
protected  int max_results
           
protected  boolean nullify
           
protected  int num_results
           
 
Constructor Summary
Table.Remover(boolean nullify, int max_results)
           
 
Method Summary
 java.util.List<T> getList()
           
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nullify

protected final boolean nullify

max_results

protected final int max_results

list

protected java.util.List<T> list

num_results

protected int num_results
Constructor Detail

Table.Remover

public Table.Remover(boolean nullify,
                     int max_results)
Method Detail

getList

public java.util.List<T> getList()

visit

public boolean visit(long seqno,
                     T element,
                     int row,
                     int column)
Description copied from interface: Table.Visitor
Iteration over the table, used by Table.forEach(long,long,org.jgroups.util.Table.Visitor).

Specified by:
visit in interface Table.Visitor<T>
Parameters:
seqno - The current seqno
element - The element at matrix[row][column]
row - The current row
column - The current column
Returns:
True if we should continue the iteration, false if we should break out of the iteration


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.