org.jgroups.util
Class Table.Counter

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

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


Field Summary
protected  int result
           
 
Constructor Summary
protected Table.Counter()
           
 
Method Summary
 int 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected int result
Constructor Detail

Table.Counter

protected Table.Counter()
Method Detail

getResult

public int getResult()

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.