Interface SizedIterator<T>
-
- Type Parameters:
T
- the type of elements of this iterator
- All Superinterfaces:
java.util.Iterator<T>
- All Known Subinterfaces:
SizedIterator<T>
public interface SizedIterator<T> extends java.util.Iterator<T>
SizedIterator
extendsIterator
with agetSize
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getSize()
The number of elements of this iterator or -1 if not known.
-