Interface IIterableIterator<ELEMENTTYPE>
- Type Parameters:
ELEMENTTYPE- The type of object to iterate
- All Superinterfaces:
ICommonsIterable<ELEMENTTYPE>,Iterable<ELEMENTTYPE>,Iterator<ELEMENTTYPE>
- All Known Implementing Classes:
ArrayIterator,CombinationGenerator,FileSystemIterator,FileSystemRecursiveIterator,FilterIterator,IterableIterator,IterableIteratorFromEnumeration,MapperIterator
public interface IIterableIterator<ELEMENTTYPE>
extends ICommonsIterable<ELEMENTTYPE>, Iterator<ELEMENTTYPE>
This is a merged interface of
Iterator and Iterable for
simpler usage of iterators in the new Java 1.5 "for" constructs.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault Iterator<ELEMENTTYPE> iterator()default IIterableIterator<ELEMENTTYPE> withFilter(Predicate<? super ELEMENTTYPE> aFilter) default <DSTTYPE> IIterableIterator<DSTTYPE> withMapper(Function<? super ELEMENTTYPE, ? extends DSTTYPE> aMapper) Methods 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 java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<ELEMENTTYPE>
-
withFilter
@Nonnull default IIterableIterator<ELEMENTTYPE> withFilter(@Nonnull Predicate<? super ELEMENTTYPE> aFilter) -
withMapper
@Nonnull default <DSTTYPE> IIterableIterator<DSTTYPE> withMapper(@Nonnull Function<? super ELEMENTTYPE, ? extends DSTTYPE> aMapper)
-