Klasse MappingContainerView<E,T>
java.lang.Object
ch.nolix.core.container.base.AbstractContainer<T>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<T>
ch.nolix.core.container.arraylist.MappingContainerView<E,T>
- Typparameter:
E- is the type of the elements of aMappingContainerView.T- is the type of the elements aMappingContainerViewmaps from its elements.
- Alle implementierten Schnittstellen:
Filterable<T>,Groupable<T>,IContainer<T>,IFilteringContainerViewProvider<T>,IIntervallContainerViewProvider<T>,IMappingContainerViewProvider<T>,Mappable<T>,AggregationRequestable<T>,ArrayMappable<T>,CountRequestable<T>,IndexRequestable<T>,IterableWithCopyableIterator<T>,SingleSearchable<T>,StoringRequestable<T>,StringMappable,EmptinessRequestable,MaterializationRequestable,Iterable<T>
- Version:
- 2025-05-14
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <E2,T2> MappingContainerView <E2, T2> forContainerAndMapper(AbstractContainer<E2> container, Function<E2, T2> mapper) intgetCount()getStoredAtOneBasedIndex(int oneBasedIndex) booleaniterator()Von Klasse geerbte Methoden ch.nolix.core.container.arraylist.AbstractExtendedContainer
createEmptyMutableList, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewOf, getViewOfStoredSelected, toOrderedListVon Klasse geerbte Methoden ch.nolix.core.container.base.AbstractContainer
contains, containsAll, containsAll, containsAll, containsAny, containsAny, containsAnyOf, containsAnyOf, containsAsManyAs, containsEqualing, containsExactlyEqualingInSameOrder, containsExactlyInSameOrder, containsLessThan, containsMoreThan, containsNone, containsNone, 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, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLast, isEmpty, to, toArray, toByteArray, toCharArray, toConcatenatedString, toDoubleArray, toIntArray, toLongArray, toMultiples, toNumbers, toReversedList, toStringArray, toStrings, toStringWithSeparator, toStringWithSeparator, toWithOneBasedIndexVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.EmptinessRequestable
containsAnyVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliteratorVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.MaterializationRequestable
isView
-
Methodendetails
-
forContainerAndMapper
public static <E2,T2> MappingContainerView<E2,T2> forContainerAndMapper(AbstractContainer<E2> container, Function<E2, T2> mapper) - Typparameter:
E2- is the type of the elements of the createdMappingContainerView.T2- is the type of the elements the createdMappingContainerViewmaps from its elements.- Parameter:
container-mapper-- Gibt zurück:
- a new
MappingContainerViewwith the given container and mapper. - Löst aus:
ArgumentIsNullException- if the given container is null.ArgumentIsNullException- if the given mapper is null.
-
getCount
public int getCount()- Gibt zurück:
- the number of elements of the current
CountRequestable.
-
getStoredAtOneBasedIndex
- Parameter:
oneBasedIndex-- Gibt zurück:
- the element at the given oneBasedIndex. The element can be null.
-
isMaterialized
public boolean isMaterialized()- Gibt zurück:
- true if the current
MaterializationRequestableis materialized, false otherwise.
-
iterator
-