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 aMappingContainerView
maps 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) int
getCount()
getStoredAtOneBasedIndex
(int oneBasedIndex) boolean
iterator()
Von Klasse geerbte Methoden ch.nolix.core.container.arraylist.AbstractExtendedContainer
createEmptyMutableList, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewOf, getViewOfStoredSelected, toOrderedList
Von 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, toWithOneBasedIndex
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.EmptinessRequestable
containsAny
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.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 createdMappingContainerView
maps from its elements.- Parameter:
container
-mapper
-- Gibt zurück:
- a new
MappingContainerView
with 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
MaterializationRequestable
is materialized, false otherwise.
-
iterator
-