Class IterableIterator<ELEMENTTYPE>
java.lang.Object
com.helger.commons.collection.iterate.IterableIterator<ELEMENTTYPE>
- Type Parameters:
ELEMENTTYPE- The type of elements to iterate.
- All Implemented Interfaces:
ICommonsIterable<ELEMENTTYPE>,IIterableIterator<ELEMENTTYPE>,Iterable<ELEMENTTYPE>,Iterator<ELEMENTTYPE>
- Direct Known Subclasses:
FileSystemIterator
This class is used for simpler iteration over an Iterator via the new "for"
syntax.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionIterableIterator(ELEMENTTYPE[] aCont) IterableIterator(Iterable<ELEMENTTYPE> aCont) IterableIterator(Iterator<ELEMENTTYPE> aIter) -
Method Summary
Modifier and TypeMethodDescriptionstatic <ELEMENTTYPE>
IIterableIterator<ELEMENTTYPE> final booleanhasNext()final Iterator<ELEMENTTYPE> iterator()final ELEMENTTYPEnext()final voidremove()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount, getCountMethods inherited from interface com.helger.commons.collection.iterate.IIterableIterator
withFilter, withMapperMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
IterableIterator
-
IterableIterator
-
IterableIterator
-
-
Method Details
-
hasNext
public final boolean hasNext()- Specified by:
hasNextin interfaceIterator<ELEMENTTYPE>
-
next
- Specified by:
nextin interfaceIterator<ELEMENTTYPE>
-
remove
public final void remove()- Specified by:
removein interfaceIterator<ELEMENTTYPE>
-
iterator
- Specified by:
iteratorin interfaceIIterableIterator<ELEMENTTYPE>- Specified by:
iteratorin interfaceIterable<ELEMENTTYPE>
-
toString
-
createEmpty
-