All Known Subinterfaces:
CqlIteration <I,O,R>
, CqlProjection <I,O>
, CqlSelection <I>
, CqlTransfer <I,R>
, Substituter.Iterable <T>
, Substituter.Managed <T>
, X2DMap <K1,K2,V>
, XAddGetCollection <E>
, XAddGetMap <K,V>
, XAddGetSet <E>
, XBag <E>
, XBasicEnum <E>
, XBasicList <E>
, XBasicSequence <E>
, XBasicTable <K,V>
, XBasicTable.Keys <K,V>
, XBasicTable.Values <K,V>
, XChart <K,V>
, XChart.Keys <K,V>
, XChart.Values <K,V>
, XCollection <E>
, XDecreasingEnum <E>
, XDecreasingList <E>
, XDecreasingSequence <E>
, XEnum <E>
, XGetting2DMap <K1,K2,V>
, XGettingBag <E>
, XGettingCollection <E>
, XGettingEnum <E>
, XGettingList <E>
, XGettingMap <K,V>
, XGettingMap.Keys <K,V>
, XGettingMap.Values <K,V>
, XGettingSequence <E>
, XGettingSet <E>
, XGettingSortation <E>
, XGettingTable <K,V>
, XGettingTable.Keys <K,V>
, XGettingTable.Values <K,V>
, XImmutableBag <E>
, XImmutableCollection <E>
, XImmutableEnum <E>
, XImmutableEnum.Factory <E>
, XImmutableList <E>
, XImmutableMap <K,V>
, XImmutableMap.Keys <K,V>
, XImmutableMap.Values <K,V>
, XImmutableSequence <E>
, XImmutableSet <E>
, XImmutableTable <K,V>
, XImmutableTable.Keys <K,V>
, XImmutableTable.Values <K,V>
, XIncreasingEnum <E>
, XIncreasingList <E>
, XIncreasingSequence <E>
, XIndexIterable <E>
, XLadder <E>
, XList <E>
, XMap <K,V>
, XMap.Keys <K,V>
, XMap.Values <K,V>
, XProcessingBag <E>
, XProcessingCollection <E>
, XProcessingEnum <E>
, XProcessingList <E>
, XProcessingMap <K,V>
, XProcessingMap.Keys <K,V>
, XProcessingMap.Values <K,V>
, XProcessingSequence <E>
, XProcessingSet <E>
, XProcessingSortation <E>
, XPutGetBag <E>
, XPutGetCollection <E>
, XPutGetEnum <E>
, XPutGetList <E>
, XPutGetMap <K,V>
, XPutGetSequence <E>
, XPutGetSet <E>
, XPutGetSortation <E>
, XRank <E>
, XReference <E>
, XReferencing <E>
, XReplacingBag <E>
, XSequence <E>
, XSet <E>
, XSettingEnum <E>
, XSettingList <E>
, XSettingSequence <E>
, XSortableEnum <E>
, XSortableSequence <E>
, XSortation <E>
, XTable <K,V>
, XTable.Keys <K,V>
, XTable.Values <K,V>
All Known Implementing Classes:
ArrayAccessor
, ArrayCollector
, ArrayView
, BulkList
, Constant
, ConstHashEnum
, ConstHashTable
, ConstHashTable.Keys
, ConstHashTable.Values
, ConstLinearEnum
, ConstList
, CqlIteration.Default
, CqlProjection.Default
, CqlSelection.Default
, CqlTransfer.Default
, Empty
, EmptyTable
, EnumProcessor
, EnumView
, EqBulkList
, EqConstHashEnum
, EqConstHashTable
, EqConstHashTable.Keys
, EqConstHashTable.Values
, EqConstList
, EqHash2DMap
, EqHashEnum
, EqHashTable
, EqHashTable.Keys
, EqHashTable.Values
, FixedList
, HashEnum
, HashTable
, HashTable.Keys
, HashTable.Values
, LimitList
, LinkingReferencing.Default
, LinkReference.Default
, ListAccessor
, ListProcessor
, ListView
, LockedCollection
, LockedGettingMap
, LockedList
, LockedMap
, MappedList
, MapView
, MutexSet
, OpenAdressingMiniSet
, SetView
, Single
, Singleton
, SingletonView
, SubCollector
, SubList
, SubListAccessor
, SubListProcessor
, SubListView
, SubProcessor
, Substituter.Default
, SubView
, SynchCollection
, SynchList
, SynchSet
, TableView
, View
, XIterable.Executor
public interface XIterable<E>
Nested Class Summary
Nested Classes
Modifier and Type
Interface
Description
static class
XIterable.Executor <E >
Wrapper class that implements
XIterable
to wrap a subject of type E that procedures shall be
executed on.
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method
Description
<P extends Consumer <? super E >> P
iterate (P procedure)
Executes the given procedure for each element of the
XIterable
until all elements have been processed or the action throws an
exception.
Method Details
<P extends Consumer <? super E >> P iterate (
P procedure)
Executes the given procedure for each element of the
XIterable
until all elements have been processed or the action throws an
exception. Unless otherwise specified by the implementing class,
procedures are performed in the order of iteration (if an iteration order
is specified). Exceptions thrown by the procedure are relayed to the
caller.
Should be identical to
Iterable.forEach(Consumer)
.
Type Parameters:
P
- type of procedure
Parameters:
procedure
- The procedure to be performed for each element
Returns:
Given procedure