org.knime.core.data.util
Class SynchronizedIterator.ElementAndIndex<T>

java.lang.Object
  extended by org.knime.core.data.util.SynchronizedIterator.ElementAndIndex<T>
Type Parameters:
T - The element class to wrap
Enclosing class:
SynchronizedIterator<T>

public static final class SynchronizedIterator.ElementAndIndex<T>
extends Object

Class combining an iteration element with its index in the iteration loop.


Method Summary
 T get()
           
 int getIndex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public T get()
Returns:
the element

getIndex

public int getIndex()
Returns:
the index of the elemtent in the iteration process


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.