Class ExtendedIterableFilterView<E>
java.lang.Object
ch.nolix.base.datastructure.extendediterable.AbstractExtendedIterable<E>
ch.nolix.base.datastructure.extendediterablefilterview.ExtendedIterableFilterView<E>
- Type Parameters:
E- the type of the elements of aExtendedIterableFilterView.
- All Implemented Interfaces:
ArrayMappable<E>, IndexRequestable<E>, IterableWithCopyableIterator<E>, SingleSearchable<E>, StoringRequestable<E>, StringMappable, ExtendedIterable<E>, Filterable<E>, FilteringContainerViewProvider<E>, Groupable<E>, IntervallContainerViewProvider<E>, Mappable<E>, MappingContainerViewProvider<E>, AggregationRequestable<E>, CountRequestable<E>, EmptinessRequestable, MaterializationRequestable, Iterable<E>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ExtendedIterableFilterView<T> forArrayAndSelector(T[] array, Predicate<T> selector) static <T> ExtendedIterableFilterView<T> forContainerAndSelector(ExtendedIterable<T> container, Predicate<T> selector) intgetCount()getStoredAtOneBasedIndex(int oneBasedIndex) booleaniterator()toString()Methods inherited from class AbstractExtendedIterable
contains, containsAllOf, containsAllOf, containsAny, containsAnyOf, containsAnyOf, containsAsManyAs, containsEqualing, containsExactlyEqualingInSameOrder, containsExactlyInSameOrder, containsLessThan, containsMoreThan, containsNone, containsNoneOf, containsNoneOf, containsOnce, containsOne, containsOne, containsOneEqualing, containsOnly, getAverage, getAverageOrZero, getCount, getCountOf, getMax, getMaxOrZero, getMedian, getMedianOrZero, getMin, getMinOrZero, getOneBasedIndexOfFirst, getOneBasedIndexOfFirstEqualElement, getOneBasedIndexOfFirstOccurrenceOf, getOptionalStoredFirst, getOptionalStoredFirst, getStandardDeviation, getStoredByMax, getStoredByMin, getStoredFirst, getStoredFirst, getStoredFirstOfType, getStoredInGroups, getStoredLast, getStoredOfType, getStoredOne, getStoredOne, getStoredOthers, getStoredSelected, getSum, getSumOfInts, getVariance, getViewFromOneBasedStartIndex, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewOf, getViewOfStoredSelected, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLast, isEmpty, to, toArray, toByteArray, toCharArray, toConcatenatedString, toDoubleArray, toIntArray, toLongArray, toMultiples, toNumbers, toOrderedList, toReversedList, toStringArray, toStrings, toStringWithSeparator, toStringWithSeparator, toWithOneBasedIndexMethods inherited from interface EmptinessRequestable
containsAnyMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface MaterializationRequestable
isView
-
Method Details
-
forContainerAndSelector
public static <T> ExtendedIterableFilterView<T> forContainerAndSelector(ExtendedIterable<T> container, Predicate<T> selector) - Type Parameters:
T- is the type of the elements of the given container.- Parameters:
container-selector-- Returns:
- a new
ExtendedIterableFilterViewfor the given container and selector. - Throws:
RuntimeException- if the given container is nullRuntimeException- if the given selector is null.
-
forArrayAndSelector
public static <T> ExtendedIterableFilterView<T> forArrayAndSelector(T[] array, Predicate<T> selector) - Type Parameters:
T- is the type of the given element and elements of the given array.- Parameters:
array-selector-- Returns:
- a new
ExtendedIterableFilterViewfor the given element and array. - Throws:
RuntimeException- if the given array is nullRuntimeException- if the given selector is null.
-
getCount
public int getCount()- Returns:
- the number of elements of the current
CountRequestable.
-
getStoredAtOneBasedIndex
- Parameters:
oneBasedIndex-- Returns:
- the element at the given oneBasedIndex. The element can be null.
-
isMaterialized
public boolean isMaterialized()- Returns:
- true if the current
MaterializationRequestableis materialized, false otherwise.
-
iterator
-
toString
-