Package ch.nolix.core.container.base
Klasse Container<E>
java.lang.Object
ch.nolix.core.container.base.Container<E>
- Typparameter:
E
- is the type of the elements aContainer
can store.
- Alle implementierten Schnittstellen:
IContainer<E>
,IMappableContainer<E>
,ISearchableContainer<E>
,IStatisticalConainer<E>
,IterableWithCopyableIterator<E>
,StoringRequestable<E>
,EmptinessRequestable
,MaterializationRequestable
,Iterable<E>
- Bekannte direkte Unterklassen:
ArrayList
,ArrayReadContainer
,CachingContainer
,CompressedList
,GapMatrix
,ImmutableList
,IterableReadContainer
,LinkedList
,Matrix
,MatrixColumn
,MatrixRow
,MultiReadContainer
,ReadContainer
- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsAll
(Iterable<?> elements) The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAll
(Object element, Object... elements) The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
The complexity of this implementation is O(1).final boolean
containsAny
(Object element, Object... elements) The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAny
(Predicate<E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsAnyOf
(Iterable<?> elements) The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAsManyAs
(Iterable<?> container) The complexity of this implementation is -O(1) if the given container is aIContainer
.final boolean
containsEqualing
(Object element) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsExactlyInSameOrder
(Iterable<?> container) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsLessThan
(Iterable<?> container) The complexity of this implementation is -O(1) if the given container is aIContainer
.final boolean
containsMoreThan
(Iterable<?> container) The complexity of this implementation is O(1).final boolean
containsNone
(Object element, Object... elements) The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsNone
(Predicate<E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsNoneOf
(Iterable<?> elements) The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsOnce
(E element) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
The complexity of this implementation is O(1).final boolean
containsOne
(Predicate<E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsOneEqualing
(E element) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsOnly
(Predicate<E> selector) The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsOnlyEqualingAndViceVersa
(Iterable<?> container) The complexity of this implementation is O(m*n) if the currentContainer
contains m elements and the container contains n elements.protected abstract <E2> ILinkedList
<E2> createEmptyMutableList
(Marker<E2> marker) final IContainer
<E> from1BasedStartIndex
(int startIndex) The complexity of this implementation is O(1).final IContainer
<E> from1BasedStartIndexUntil1BasedEndIndex
(int startIndex, int endIndex) The complexity of this implementation is O(1).final int
get1BasedIndexOfFirst
(Predicate<E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
get1BasedIndexOfFirstEqualElement
(E element) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
get1BasedIndexOfFirstOccuranceOf
(E element) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getAverage
(Function<E, Number> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getAverageOrZero
(Function<E, Number> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
The complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
The complexity of this implementation is O(n) if the currentContainer
contains n elements.final <C extends Comparable<C>>
CThe complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getMaxOrZero
(Function<E, Number> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
The complexity of this implementation is O(n*log(n)) if the currentContainer
contains n elements.final double
getMedianOrZero
(Function<E, Number> norm) The complexity of this implementation is O(n*log(n)) if the currentContainer
contains n elements.final <C extends Comparable<C>>
CThe complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getMinOrZero
(Function<E, Number> norm) The complexity of this implementation is O(1).getOptionalStoredFirst
(Predicate<? super E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getStandardDeviation
(Function<E, Number> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final E
The complexity of this implementation is O(1).final <C extends Comparable<C>>
EgetStoredByMax
(Function<E, C> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final <C extends Comparable<C>>
EgetStoredByMin
(Function<E, C> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final E
The complexity of this implementation is O(1).final E
getStoredFirst
(Predicate<? super E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<? extends IContainer<E>> getStoredGroups
(Function<E, ?> norm) The complexity of this implementation is O(n^2) if the currentContainer
contains n elements.final <E2 extends E>
IContainer<E2> getStoredOfType
(Class<E2> type) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final E
The complexity of this implementation is O(1).final E
getStoredOne
(Predicate<? super E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> getStoredOther
(Predicate<E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> getStoredSelected
(Predicate<? super E> selector) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final BigDecimal
The complexity of this implementation is O(n) if the currentContainer
contains n elements.final BigInteger
getSumOfIntegers
(ToIntFunction<E> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getVariance
(Function<E, Number> norm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
isEmpty()
The complexity of this implementation is O(1).final <E2> IContainer
<E2> The complexity of this implementation is O(n) if the currentContainer
contains n elements.final Object[]
toArray()
The complexity of this implementation is O(n) if the currentContainer
contains n elements.final byte[]
toByteArray
(Function<E, Byte> byteNorm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final char[]
toCharArray
(Function<E, Character> charNorm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final String
The complexity of this implementation is O(n) if the currentContainer
contains n elements.final double[]
toDoubleArray
(ToDoubleFunction<E> doubleNorm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final <E2> IContainer
<E2> toFromGroups
(Function<E, IContainer<E2>> extractor) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final int[]
toIntArray
(ToIntFunction<E> intNorm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final long[]
toLongArray
(ToLongFunction<E> longNorm) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> The complexity of this implementation is O(n) if the currentContainer
contains n elements.final String[]
The complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<String> The complexity of this implementation is O(n) if the currentContainer
contains n elements.final String
toStringWithSeparator
(char separator) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final String
toStringWithSeparator
(String separator) The complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> until1BasedIndex
(int endIndex) The complexity of this implementation is O(1).final IContainer
<E> The complexity of this implementation is O(1).final IContainer
<E> withoutFirst
(int n) The complexity of this implementation is O(1).final IContainer
<E> The complexity of this implementation is O(1).final IContainer
<E> withoutLast
(int n) The complexity of this implementation is O(1).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.baseapi.IContainer
toOrderedList
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.containerapi.baseapi.ISearchableContainer
getStoredAt1BasedIndex, getStoredLast
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.containerapi.baseapi.IStatisticalConainer
getCount
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.containerapi.baseapi.IterableWithCopyableIterator
iterator
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.MaterializationRequestable
isMaterialized, isView
-
Konstruktordetails
-
Container
public Container()
-
-
Methodendetails
-
contains
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
contains
in SchnittstelleStoringRequestable<E>
- Parameter:
element
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given element.
-
containsAll
The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n elements are given.- Angegeben von:
containsAll
in SchnittstelleStoringRequestable<E>
- Parameter:
element
-elements
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given element and all of the given elements.
-
containsAll
The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n elements are given.- Angegeben von:
containsAll
in SchnittstelleStoringRequestable<E>
- Parameter:
elements
-- Gibt zurück:
- true if the current
StoringRequestable
contains all of the given elements.
-
containsAny
public final boolean containsAny()The complexity of this implementation is O(1).- Angegeben von:
containsAny
in SchnittstelleEmptinessRequestable
- Gibt zurück:
- true if the current
EmptinessRequestable
contains one or several elements.
-
containsAny
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsAny
in SchnittstelleStoringRequestable<E>
- Parameter:
selector
-- Gibt zurück:
- true if the current
StoringRequestable
contains an element the given selector selects.
-
containsAny
The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n elements are given.- Angegeben von:
containsAny
in SchnittstelleStoringRequestable<E>
- Parameter:
element
-elements
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given element or one of the given elements.
-
containsAnyOf
The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n elements are given.- Angegeben von:
containsAnyOf
in SchnittstelleStoringRequestable<E>
- Parameter:
elements
-- Gibt zurück:
- true if the current
StoringRequestable
contains any of the given elements.
-
containsAsManyAs
The complexity of this implementation is -O(1) if the given container is aIContainer
. -O(n) otherwise.- Angegeben von:
containsAsManyAs
in SchnittstelleStoringRequestable<E>
- Parameter:
container
-- Gibt zurück:
- true if the current
StoringRequestable
contains as many elements as the given container.
-
containsEqualing
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsEqualing
in SchnittstelleStoringRequestable<E>
- Parameter:
element
-- Gibt zurück:
- true if the current
StoringRequestable
contains an element that equals the given given element.
-
containsExactlyInSameOrder
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsExactlyInSameOrder
in SchnittstelleStoringRequestable<E>
- Parameter:
container
-- Gibt zurück:
- true if the current
StoringRequestable
contains exactly the elements of the given container in the same order, false otherwise.
-
containsLessThan
The complexity of this implementation is -O(1) if the given container is aIContainer
. -O(n) otherwise.- Angegeben von:
containsLessThan
in SchnittstelleStoringRequestable<E>
- Parameter:
container
-- Gibt zurück:
- true if the current
StoringRequestable
contains less elements than the given container.
-
containsMoreThan
The complexity of this implementation is O(1).- Angegeben von:
containsMoreThan
in SchnittstelleStoringRequestable<E>
- Parameter:
container
-- Gibt zurück:
- true if the current
StoringRequestable
contains more elements than the given container.
-
containsNone
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsNone
in SchnittstelleStoringRequestable<E>
- Parameter:
selector
-- Gibt zurück:
- true if the current
StoringRequestable
does not contain an element the given selector selects.
-
containsNone
The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n elements are given.- Angegeben von:
containsNone
in SchnittstelleStoringRequestable<E>
- Parameter:
element
-elements
-- Gibt zurück:
- true if the current
StoringRequestable
does not contain the given element and none of the given elements.
-
containsNoneOf
The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n elements are given.- Angegeben von:
containsNoneOf
in SchnittstelleStoringRequestable<E>
- Parameter:
elements
-- Gibt zurück:
- true if the current
StoringRequestable
does not contain any element of the given elements.
-
containsOnce
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsOnce
in SchnittstelleStoringRequestable<E>
- Parameter:
element
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given element exactly 1 time.
-
containsOne
public final boolean containsOne()The complexity of this implementation is O(1).- Angegeben von:
containsOne
in SchnittstelleStoringRequestable<E>
- Gibt zurück:
- true if the current
StoringRequestable
contains exactly 1 element.
-
containsOne
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsOne
in SchnittstelleStoringRequestable<E>
- Parameter:
selector
-- Gibt zurück:
- true if the current
StoringRequestable
contains exactly 1 element the given selector selects.
-
containsOneEqualing
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsOneEqualing
in SchnittstelleStoringRequestable<E>
- Parameter:
element
-- Gibt zurück:
- true if the current
StoringRequestable
contains exactly 1 element that equals the given element.
-
containsOnly
The complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n elements are given.- Angegeben von:
containsOnly
in SchnittstelleStoringRequestable<E>
- Parameter:
selector
-- Gibt zurück:
- true if the current
StoringRequestable
contains only elements the given selector selects.
-
containsOnlyEqualingAndViceVersa
The complexity of this implementation is O(m*n) if the currentContainer
contains m elements and the container contains n elements.- Angegeben von:
containsOnlyEqualingAndViceVersa
in SchnittstelleStoringRequestable<E>
- Parameter:
container
-- Gibt zurück:
- true if the current
StoringRequestable
contains only elements that equal an element in the given container and vice versa.
-
from1BasedStartIndex
The complexity of this implementation is O(1).- Angegeben von:
from1BasedStartIndex
in SchnittstelleIContainer<E>
- Parameter:
startIndex
-- Gibt zurück:
- a new sub
IContainer
of the currentIContainer
from the given p1BasedStartIndex.
-
from1BasedStartIndexUntil1BasedEndIndex
The complexity of this implementation is O(1).- Angegeben von:
from1BasedStartIndexUntil1BasedEndIndex
in SchnittstelleIContainer<E>
- Parameter:
startIndex
-endIndex
-- Gibt zurück:
- a new sub
IContainer
of the currentIContainer
from the given p1BasedStartIndex to the given p1BasedEndIndex.
-
getAverage
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getAverage
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the average of the values the given norm returns from the elements of
the current
IStatisticalConainer
.
-
getAverageOrZero
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getAverageOrZero
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the average of the values the given norm returns from the elements of
the current
IStatisticalConainer
if the currentIStatisticalConainer
contains elements, 0.0 otherwise.
-
getCount
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getCount
in SchnittstelleIStatisticalConainer<E>
- Parameter:
selector
-- Gibt zurück:
- the number of elements the given selector selects from the current
IStatisticalConainer
.
-
getCount
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getCount
in SchnittstelleIStatisticalConainer<E>
- Parameter:
element
-- Gibt zurück:
- the number how many times the current
IStatisticalConainer
contains the given element.
-
get1BasedIndexOfFirst
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
get1BasedIndexOfFirst
in SchnittstelleIContainer<E>
- Parameter:
selector
-- Gibt zurück:
- the 1 based index of the first element the given selector selects
from the current
IContainer
.
-
get1BasedIndexOfFirstEqualElement
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
get1BasedIndexOfFirstEqualElement
in SchnittstelleIContainer<E>
- Parameter:
element
-- Gibt zurück:
- the 1-based index of the first element of the current
IContainer
that equals the given element.
-
get1BasedIndexOfFirstOccuranceOf
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
get1BasedIndexOfFirstOccuranceOf
in SchnittstelleIContainer<E>
- Parameter:
element
-- Gibt zurück:
- the 1-based index of the given element in the current
IContainer
.
-
getMax
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getMax
in SchnittstelleIStatisticalConainer<E>
- Typparameter:
C
- is the type of theComparable
s the given norm returns.- Parameter:
norm
-- Gibt zurück:
- the biggest
Comparable
the given norm returns from the elements of the currentIStatisticalConainer
.
-
getMaxOrZero
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getMaxOrZero
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the biggest value the given norm returns from the elements of the
current
IStatisticalConainer
if the currentIStatisticalConainer
contains elements, 0.0 otherwise.
-
getMedian
The complexity of this implementation is O(n*log(n)) if the currentContainer
contains n elements.- Angegeben von:
getMedian
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the median of the values the given norm returns from the elements of
the current
IStatisticalConainer
.
-
getMedianOrZero
The complexity of this implementation is O(n*log(n)) if the currentContainer
contains n elements.- Angegeben von:
getMedianOrZero
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the median of the values the given norm returns from the elements of
the current
IStatisticalConainer
if the currentIStatisticalConainer
contains elements, 0.0 otherwise.
-
getMin
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getMin
in SchnittstelleIStatisticalConainer<E>
- Typparameter:
C
- is the type of theComparable
s the given norm returns.- Parameter:
norm
-- Gibt zurück:
- the smallest
Comparable
the given norm returns from the elements of the currentIStatisticalConainer
.
-
getMinOrZero
- Angegeben von:
getMinOrZero
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the smallest value the given norm returns from the elements of the
current
IStatisticalConainer
if the currentIStatisticalConainer
contains elements, 0.0 otherwise.
-
getOptionalStoredFirst
The complexity of this implementation is O(1).- Angegeben von:
getOptionalStoredFirst
in SchnittstelleISearchableContainer<E>
- Gibt zurück:
- a
Optional
with the first element of the currentISearchableContainer
if the currentISearchableContainer
contains any, an emptyOptional
otherwise.
-
getOptionalStoredFirst
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getOptionalStoredFirst
in SchnittstelleISearchableContainer<E>
- Parameter:
selector
-- Gibt zurück:
- a new
Optional
with the first element the given selector selects from the currentISearchableContainer
if the currentISearchableContainer
contains an element the given selector selects, an emptyOptional
otherwise.
-
getStoredAny
The complexity of this implementation is O(1).- Angegeben von:
getStoredAny
in SchnittstelleISearchableContainer<E>
- Gibt zurück:
- a randomly selected element of the current
ISearchableContainer
.
-
getStoredByMax
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredByMax
in SchnittstelleISearchableContainer<E>
- Typparameter:
C
- is the type of theComparable
s the given norm returns.- Parameter:
norm
-- Gibt zurück:
- the element with the biggest
Comparable
the given norm returns from the elements of the currentISearchableContainer
.
-
getStoredByMin
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredByMin
in SchnittstelleISearchableContainer<E>
- Typparameter:
C
- is the type of theComparable
s the given norm returns.- Parameter:
norm
-- Gibt zurück:
- the element with the smallest
Comparable
the given norm returns from the elements of the currentISearchableContainer
.
-
getStoredFirst
The complexity of this implementation is O(1).- Angegeben von:
getStoredFirst
in SchnittstelleISearchableContainer<E>
- Gibt zurück:
- the first element of the current
ISearchableContainer
.
-
getStoredFirst
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredFirst
in SchnittstelleISearchableContainer<E>
- Parameter:
selector
-- Gibt zurück:
- the first element the given selector selects from the current
ISearchableContainer
.
-
getStoredGroups
The complexity of this implementation is O(n^2) if the currentContainer
contains n elements.- Angegeben von:
getStoredGroups
in SchnittstelleISearchableContainer<E>
- Parameter:
norm
-- Gibt zurück:
- a new
ISearchableContainer
with groups with the elements of the currentISearchableContainer
grouped by the given norm.
-
getStoredOfType
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredOfType
in SchnittstelleISearchableContainer<E>
- Typparameter:
E2
- is the type of the elements of the returnedISearchableContainer
.- Parameter:
type
-- Gibt zurück:
- a new
ISearchableContainer
with the elements from the currentISearchableContainer
that are of the given type.
-
getStoredOne
The complexity of this implementation is O(1).- Angegeben von:
getStoredOne
in SchnittstelleISearchableContainer<E>
- Gibt zurück:
- the one element of the current
ISearchableContainer
.
-
getStoredOne
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredOne
in SchnittstelleISearchableContainer<E>
- Parameter:
selector
-- Gibt zurück:
- the one element the given selector selects from the current
ISearchableContainer
.
-
getStoredOther
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredOther
in SchnittstelleISearchableContainer<E>
- Parameter:
selector
-- Gibt zurück:
- a new
ISearchableContainer
with the elements from the currentISearchableContainer
the given selector skips (!).
-
getStoredSelected
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredSelected
in SchnittstelleISearchableContainer<E>
- Parameter:
selector
-- Gibt zurück:
- a new
ISearchableContainer
with the elements the given selector selects from the currentISearchableContainer
.
-
getStandardDeviation
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStandardDeviation
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the standard deviation of the values the given norm returns from the
elements of the current
IStatisticalConainer
.
-
getSum
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getSum
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the sum of the values the given norm returns from the elements of the
current
IStatisticalConainer
.
-
getSumOfIntegers
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getSumOfIntegers
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the sum of the integers the given norm returns from the elements of
the current
IStatisticalConainer
.
-
getVariance
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getVariance
in SchnittstelleIStatisticalConainer<E>
- Parameter:
norm
-- Gibt zurück:
- the variance of the values the given norm returns from the elements
of the current
IStatisticalConainer
.
-
isEmpty
public final boolean isEmpty()The complexity of this implementation is O(1).- Angegeben von:
isEmpty
in SchnittstelleEmptinessRequestable
- Gibt zurück:
- true if
EmptinessRequestable
does not contain an element.
-
to
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
to
in SchnittstelleIMappableContainer<E>
- Typparameter:
E2
- is the type of the elements the given extractor returns.- Parameter:
extractor
-- Gibt zurück:
- a new
IMappableContainer
with the elements the given extractor extracts from the elements of the currentIMappableContainer
.
-
toArray
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toArray
in SchnittstelleIMappableContainer<E>
- Gibt zurück:
- a new array with the elements of the current
IMappableContainer
.
-
toByteArray
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toByteArray
in SchnittstelleIMappableContainer<E>
- Parameter:
byteNorm
-- Gibt zurück:
- a new array with the bytes the given byteGetter returns from the
elements of the current
IMappableContainer
.
-
toCharArray
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toCharArray
in SchnittstelleIMappableContainer<E>
- Parameter:
charNorm
-- Gibt zurück:
- a new array with the chars the given charGetter returns from the
elements of the current
IMappableContainer
.
-
toConcatenatedString
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toConcatenatedString
in SchnittstelleIMappableContainer<E>
- Gibt zurück:
- a concatenated
String
representation of the currentIMappableContainer
.
-
toDoubleArray
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toDoubleArray
in SchnittstelleIMappableContainer<E>
- Parameter:
doubleNorm
-- Gibt zurück:
- a new array with the doubles the given doubleGetter returns from the
elements of the current
IMappableContainer
.
-
toFromGroups
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toFromGroups
in SchnittstelleIMappableContainer<E>
- Typparameter:
E2
- is the type of the elements of theIMappableContainer
s the given extractor returns.- Parameter:
extractor
-- Gibt zurück:
- a new
IMappableContainer
with the elements of theIMappableContainer
s the given extractor extracts from the elements of the currentIMappableContainer
.
-
toIntArray
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toIntArray
in SchnittstelleIMappableContainer<E>
- Parameter:
intNorm
-- Gibt zurück:
- a new array with the ints the given intGetter returns from the
elements of the current
IMappableContainer
.
-
toLongArray
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toLongArray
in SchnittstelleIMappableContainer<E>
- Parameter:
longNorm
-- Gibt zurück:
- a new array with the longs the given longGetter returns from the
elements of the current
IMappableContainer
.
-
toReversedList
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toReversedList
in SchnittstelleIContainer<E>
- Gibt zurück:
- a new
IContainer
with the elements of the currentIContainer
in the reversed order.
-
toStringArray
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStringArray
in SchnittstelleIContainer<E>
- Gibt zurück:
- a new array with the Strings that represent the elements of the
current
IContainer
.
-
toStrings
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStrings
in SchnittstelleIContainer<E>
- Gibt zurück:
- a new
IContainer
with theString
representations of the elements of the currentIContainer
.
-
toStringWithSeparator
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStringWithSeparator
in SchnittstelleIContainer<E>
- Parameter:
separator
-- Gibt zurück:
- a
String
representation the currentIContainer
with the given separator.
-
toStringWithSeparator
The complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStringWithSeparator
in SchnittstelleIContainer<E>
- Parameter:
separator
-- Gibt zurück:
- a
String
representation of the currentIContainer
with the given separator.
-
until1BasedIndex
The complexity of this implementation is O(1).- Angegeben von:
until1BasedIndex
in SchnittstelleIContainer<E>
- Parameter:
endIndex
-- Gibt zurück:
- a new sub
IContainer
of the currentIContainer
with the elements to the given p1BasedEndIndex.
-
withoutFirst
The complexity of this implementation is O(1).- Angegeben von:
withoutFirst
in SchnittstelleIContainer<E>
- Gibt zurück:
- a new sub
IContainer
of the currentIContainer
without the first element.
-
withoutFirst
The complexity of this implementation is O(1).- Angegeben von:
withoutFirst
in SchnittstelleIContainer<E>
- Parameter:
n
-- Gibt zurück:
- a new sub
IContainer
of the currentIContainer
without the first n elements.
-
withoutLast
The complexity of this implementation is O(1).- Angegeben von:
withoutLast
in SchnittstelleIContainer<E>
- Gibt zurück:
- a new sub
IContainer
of the currentIContainer
without the last element.
-
withoutLast
The complexity of this implementation is O(1).- Angegeben von:
withoutLast
in SchnittstelleIContainer<E>
- Parameter:
n
-- Gibt zurück:
- a new sub
IContainer
of the currentIContainer
without the last n elements of the currentIContainer
.
-
createEmptyMutableList
- Typparameter:
E2
- is the type of the elements the createdILinkedList
can contain.- Parameter:
marker
-- Gibt zurück:
- a new empty
ILinkedList
.
-