org.apache.jackrabbit.commons.flat
Interface SizedIterator<T>

Type Parameters:
T - the type of elements of this iterator
All Superinterfaces:
Iterator<T>

public interface SizedIterator<T>
extends Iterator<T>

SizedIterator extends Iterator with a getSize method.


Method Summary
 long getSize()
          The number of elements of this iterator or -1 if not known.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getSize

long getSize()
The number of elements of this iterator or -1 if not known.

Returns:
number of elements.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.