Interface ExtendedIterable<E>
- Type Parameters:
E- the type of the elements of aExtendedIterable.
- All Superinterfaces:
AggregationRequestable<E>, ArrayMappable<E>, CountRequestable<E>, EmptinessRequestable, Filterable<E>, FilteringContainerViewProvider<E>, Groupable<E>, IndexRequestable<E>, IntervallContainerViewProvider<E>, Iterable<E>, IterableWithCopyableIterator<E>, Mappable<E>, MappingContainerViewProvider<E>, MaterializationRequestable, SingleSearchable<E>, StoringRequestable<E>, StringMappable
- All Known Subinterfaces:
IArrayList<E>, ILinkedList<E>, IMatrix<E>, IMatrixColumn<E>, IMatrixRow<E>, ISqlRecord
- All Known Implementing Classes:
AbstractExtendedIterable, ArrayExtendedIterableView, ArrayList, ExtendedIterableFilterView, ExtendedIterableIntervalView, ExtendedIterableMapperView, ExtendedIterableView, ImmutableList, IterableExtendedIterableView, LinkedList, Matrix, MatrixColumn, MatrixRow, MultiExtendedIterableView, SqlRecord
public interface ExtendedIterable<E>
extends AggregationRequestable<E>, ArrayMappable<E>, CountRequestable<E>, EmptinessRequestable, Filterable<E>, Groupable<E>, FilteringContainerViewProvider<E>, IntervallContainerViewProvider<E>, MappingContainerViewProvider<E>, IndexRequestable<E>, IterableWithCopyableIterator<E>, Mappable<E>, MaterializationRequestable, SingleSearchable<E>, StoringRequestable<E>, StringMappable
A
ExtendedIterable can store several elements of a certain type. A
ExtendedIterable stores its element in a linear order. There can exists
additional orders. A ExtendedIterable is iterable.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescription<C extends Comparable<C>>
ExtendedIterable<E> toOrderedList(Function<E, C> comparableMapper) Methods inherited from interface AggregationRequestable
getAverage, getAverageOrZero, getMax, getMaxOrZero, getMedian, getMedianOrZero, getMin, getMinOrZero, getStandardDeviation, getSum, getSumOfInts, getVarianceMethods inherited from interface ArrayMappable
toArray, toByteArray, toCharArray, toDoubleArray, toIntArray, toLongArray, toStringArrayMethods inherited from interface CountRequestable
getCount, getCount, getCountOfMethods inherited from interface EmptinessRequestable
containsAny, isEmptyMethods inherited from interface Filterable
getStoredOfType, getStoredOthers, getStoredSelectedMethods inherited from interface FilteringContainerViewProvider
getViewOfStoredSelectedMethods inherited from interface Groupable
getStoredInGroupsMethods inherited from interface IndexRequestable
getOneBasedIndexOfFirst, getOneBasedIndexOfFirstEqualElement, getOneBasedIndexOfFirstOccurrenceOfMethods inherited from interface IntervallContainerViewProvider
getViewFromOneBasedStartIndex, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLastMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface IterableWithCopyableIterator
iteratorMethods inherited from interface Mappable
to, toMultiples, toNumbers, toStrings, toWithOneBasedIndexMethods inherited from interface MappingContainerViewProvider
getViewOfMethods inherited from interface MaterializationRequestable
isMaterialized, isViewMethods inherited from interface SingleSearchable
getOptionalStoredFirst, getOptionalStoredFirst, getStoredAtOneBasedIndex, getStoredByMax, getStoredByMin, getStoredFirst, getStoredFirst, getStoredFirstOfType, getStoredLast, getStoredOne, getStoredOneMethods inherited from interface StoringRequestable
contains, containsAllOf, containsAllOf, containsAny, containsAnyOf, containsAnyOf, containsAsManyAs, containsEqualing, containsExactlyEqualingInSameOrder, containsExactlyInSameOrder, containsLessThan, containsMoreThan, containsNone, containsNoneOf, containsNoneOf, containsOnce, containsOne, containsOne, containsOneEqualing, containsOnlyMethods inherited from interface StringMappable
toConcatenatedString, toStringWithSeparator, toStringWithSeparator
-
Method Details
-
toOrderedList
- Type Parameters:
C- is the type of theComparables the given comparableMapper returns.- Parameters:
comparableMapper-- Returns:
- a new
ExtendedIterablewith the elements of the currentExtendedIterableordered from the smallest to the biggest element according to theComparables the given comparableMapper maps from the elements of the currentExtendedIterable. - Throws:
RuntimeException- if the given comparableMapper is nullRuntimeException- if one of the elements of the currentExtendedIterableis null.
-
toReversedList
ExtendedIterable<E> toReversedList()- Returns:
- a new
ExtendedIterablewith the elements of the currentExtendedIterablein reversed order.
-