Klasse AbstractExtendedContainer<E>
java.lang.Object
ch.nolix.core.container.base.AbstractContainer<E>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<E>
- Typparameter:
E
- is the type of the elements of aAbstractExtendedContainer
.
- Alle implementierten Schnittstellen:
Filterable<E>
,Groupable<E>
,IContainer<E>
,IFilteringContainerViewProvider<E>
,IIntervallContainerViewProvider<E>
,IMappingContainerViewProvider<E>
,Mappable<E>
,AggregationRequestable<E>
,ArrayMappable<E>
,CountRequestable<E>
,IndexRequestable<E>
,IterableWithCopyableIterator<E>
,SingleSearchable<E>
,StoringRequestable<E>
,StringMappable
,EmptinessRequestable
,MaterializationRequestable
,Iterable<E>
- Bekannte direkte Unterklassen:
ArrayContainerView
,ArrayList
,CachingContainer
,ContainerView
,FilterContainerView
,ImmutableList
,IntervallContainerView
,IterableContainerView
,LinkedList
,MappingContainerView
,Matrix
,MatrixColumn
,MatrixRow
,MultiContainerView
,SqlRecord
- Version:
- 2025-05-18
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final <E2> IArrayList
<E2> createEmptyMutableList
(Marker<E2> marker) The time complexity of this implementation is O(1).final IContainer
<E> getViewFromOneBasedStartIndexToOneBasedEndIndex
(int oneBasedStartIndex, int oneBasedEndIndex) final <T> IContainer
<T> The time complexity of this implementation is O(n) if the currentAbstractContainer
contains n elements.final IContainer
<E> getViewOfStoredSelected
(Predicate<E> selector) The time complexity of this implementation is O(1).final <C extends Comparable<C>>
IContainer<E> toOrderedList
(Function<E, C> norm) The time complexity of this implementation is O(n * log(n)) if the currentAbstractContainer
contains n elements.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.containerapi.commoncontainerapi.CountRequestable
getCount
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.containerapi.commoncontainerapi.IterableWithCopyableIterator
iterator
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.MaterializationRequestable
isMaterialized, isView
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.containerapi.commoncontainerapi.SingleSearchable
getStoredAtOneBasedIndex
-
Konstruktordetails
-
AbstractExtendedContainer
public AbstractExtendedContainer()
-
-
Methodendetails
-
getViewFromOneBasedStartIndexToOneBasedEndIndex
public final IContainer<E> getViewFromOneBasedStartIndexToOneBasedEndIndex(int oneBasedStartIndex, int oneBasedEndIndex) - Parameter:
oneBasedStartIndex
-oneBasedEndIndex
-- Gibt zurück:
- a new view of the current
IIntervallContainerViewProvider
from the given oneBasedStartIndex to the given oneBasedEndIndex.
-
getViewOf
The time complexity of this implementation is O(n) if the currentAbstractContainer
contains n elements. The time complexity of this implementation is O(n) if the currentAbstractContainer
contains n elements.- Angegeben von:
getViewOf
in SchnittstelleIMappingContainerViewProvider<E>
- Setzt außer Kraft:
getViewOf
in KlasseAbstractContainer<E>
- Typparameter:
T
- is the type of the elements the given mapper maps from the elements of the currentIMappingContainerViewProvider
.- Parameter:
mapper
-- Gibt zurück:
- a new
IContainer
with the elements the given mapper maps from the elements of the currentIMappingContainerViewProvider
.
-
getViewOfStoredSelected
The time complexity of this implementation is O(1).- Parameter:
selector
-- Gibt zurück:
- a new
IContainer
view with the elements the given selector selects from the currentIFilteringContainerViewProvider
. Ignores null elements.
-
toOrderedList
The time complexity of this implementation is O(n * log(n)) if the currentAbstractContainer
contains n elements.- Typparameter:
C
- is the type of theComparable
s the given comparableMapper returns.- Parameter:
norm
-- Gibt zurück:
- a new
IContainer
with the elements of the currentIContainer
ordered from the smallest to the biggest element according to theComparable
s the given comparableMapper maps from the elements of the currentIContainer
.
-
createEmptyMutableList
The time complexity of this implementation is O(1).- Angegeben von:
createEmptyMutableList
in KlasseAbstractContainer<E>
- Typparameter:
E2
- is the type of the elements the createdILinkedList
can contain.- Parameter:
marker
-- Gibt zurück:
- a new empty
ILinkedList
.
-