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 of aContainer
.
- Alle implementierten Schnittstellen:
IContainer<E>
,IViewProviderContainer<E>
,Mappable<E>
,MultiSearchable<E>
,ArrayMappable<E>
,ICountingContainer<E>
,IndexRequestable<E>
,IStatisticalConainer<E>
,IterableWithCopyableIterator<E>
,SingleSearchable<E>
,StoringRequestable<E>
,StringMappable
,EmptinessRequestable
,MaterializationRequestable
,Iterable<E>
- Bekannte direkte Unterklassen:
ArrayList
,ArrayView
,CachingContainer
,ContainerView
,ContainerView
,ImmutableList
,IterableView
,LinkedList
,Matrix
,MatrixColumn
,MatrixRow
,MultiContainerView
- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsAll
(Iterable<?> objects) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAll
(Object[] objects) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAll
(Object object, Object... objects) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAny
(Object object, Object... objects) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAny
(Predicate<E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsAnyOf
(Iterable<?> objects) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAnyOf
(Object[] objects) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsAsManyAs
(Iterable<?> iterable) The time complexity of this implementation is O(n) if the current container contains n elements.final boolean
containsEqualing
(Object element) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsExactlyEqualingInSameOrder
(Iterable<?> iterable) The time complexity of this implementation is O(m*n) if: The currentContainer
contains m elements.final boolean
containsExactlyInSameOrder
(Iterable<?> iterable) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsLessThan
(Iterable<?> iterable) The time complexity of this implementation is O(n) if the given iterable contains n elements.final boolean
containsMoreThan
(Iterable<?> iterable) The time complexity of this implementation is O(n) if the given iterable contains n elements.final boolean
containsNone
(Object object, Object... objects) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsNone
(Predicate<E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsNoneOf
(Iterable<?> elements) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final boolean
containsOnce
(Object object) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
The time complexity of this implementation is O(1).final boolean
containsOne
(Predicate<E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsOneEqualing
(E object) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final boolean
containsOnly
(Predicate<E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.protected abstract <E2> ILinkedList
<E2> createEmptyMutableList
(Marker<E2> marker) final int
get1BasedIndexOfFirst
(Predicate<E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getAverage
(Function<E, Number> valueMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getAverageOrZero
(Function<E, Number> mapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final int
getCountOf
(Object element) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final <C extends Comparable<C>>
CThe time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getMaxOrZero
(Function<E, Number> numberMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
The time complexity of this implementation is O(n*log(n)) if the currentContainer
contains n elements.final double
getMedianOrZero
(Function<E, Number> norm) The time complexity of this implementation is O(n*log(n)) if the currentContainer
contains n elements.final <C extends Comparable<C>>
CThe time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getMinOrZero
(Function<E, Number> numberMapper) The time complexity of this implementation is O(1).getOptionalStoredFirst
(Predicate<? super E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getStandardDeviation
(Function<E, Number> norm) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final <C extends Comparable<C>>
EgetStoredByMax
(Function<E, C> comparableMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final <C extends Comparable<C>>
EgetStoredByMin
(Function<E, C> comparableMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final E
The time complexity of this implementation is O(1).final E
getStoredFirst
(Predicate<? super E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final <E2 extends E>
E2getStoredFirstOfType
(Class<E2> type) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<? extends IContainer<E>> getStoredInGroups
(Function<E, ?> norm) The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements.final E
The time complexity of this implementation is O(1) or O(n) if the currentContainer
contains n elements.final <E2 extends E>
IContainer<E2> getStoredOfType
(Class<E2> type) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final E
The time complexity of this implementation is O(1).final E
getStoredOne
(Predicate<? super E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> getStoredOthers
(Predicate<E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> getStoredSelected
(Predicate<? super E> selector) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final BigDecimal
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final BigInteger
getSumOfInts
(ToIntFunction<E> intMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double
getVariance
(Function<E, Number> numberMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> getViewFrom1BasedStartIndex
(int param1BasedStartIndex) The time complexity of this implementation is O(1).final IContainer
<E> getViewFrom1BasedStartIndexTo1BasedEndIndex
(int param1BasedStartIndex, int param1BasedEndIndex) The time complexity of this implementation is O(1).final IContainer
<E> getViewTo1BasedEndIndex
(int param1BasedEndIndex) The time complexity of this implementation is O(1).final IContainer
<E> The time complexity of this implementation is O(1).final IContainer
<E> getViewWithoutFirst
(int n) The time complexity of this implementation is O(1).final IContainer
<E> The time complexity of this implementation is O(1).final IContainer
<E> getViewWithoutLast
(int n) The time complexity of this implementation is O(1).final boolean
isEmpty()
The time complexity of this implementation is O(1) if the current Container does not contain null elements.final <E2> IContainer
<E2> The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final Object[]
toArray()
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final byte[]
toByteArray
(Function<E, Byte> byteMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final char[]
toCharArray
(Function<E, Character> charMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final String
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final double[]
toDoubleArray
(ToDoubleFunction<E> doubleMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final int[]
toIntArray
(ToIntFunction<E> intMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final long[]
toLongArray
(ToLongFunction<E> longMapper) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final <E2> IContainer
<E2> toMultiple
(Function<E, IContainer<E2>> multipleMapper) The time complexity of this implementation is O(m*n) if: -The current *Container
contains m elements.<N extends Number>
IContainer<N> The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<E> The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final String[]
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final IContainer
<String> The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final String
toStringWithSeparator
(char separator) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.final String
toStringWithSeparator
(String separator) The time complexity of this implementation is O(n) if the currentContainer
contains n elements.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 ch.nolix.coreapi.containerapi.baseapi.IContainer
toOrderedList
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.containerapi.commoncontainerapi.ICountingContainer
getCount
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
getStoredAt1BasedIndex
-
Konstruktordetails
-
Container
public Container()
-
-
Methodendetails
-
contains
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
contains
in SchnittstelleStoringRequestable<E>
- Parameter:
object
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given object, false otherwise.
-
containsAll
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsAll
in SchnittstelleStoringRequestable<E>
- Parameter:
objects
-- Gibt zurück:
- true if the current
StoringRequestable
contains all of the given objects, false otherwise.
-
containsAll
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsAll
in SchnittstelleStoringRequestable<E>
- Parameter:
object
-objects
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given object and all of the given objects, false otherwise.
-
containsAll
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsAll
in SchnittstelleStoringRequestable<E>
- Parameter:
objects
-- Gibt zurück:
- true if the current
StoringRequestable
contains all of the given objects, false otherwise.
-
containsAny
The time 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, false otherwise. Ignores null elements.
-
containsAny
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsAny
in SchnittstelleStoringRequestable<E>
- Parameter:
object
-objects
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given object or one of the given objects, false otherwise.
-
containsAnyOf
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsAnyOf
in SchnittstelleStoringRequestable<E>
- Parameter:
objects
-- Gibt zurück:
- true if the current
StoringRequestable
contains any of the given objects, false otherwise.
-
containsAnyOf
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsAnyOf
in SchnittstelleStoringRequestable<E>
- Parameter:
objects
-- Gibt zurück:
- true if the current
StoringRequestable
contains any of the given objects, false otherwise.
-
containsAsManyAs
The time complexity of this implementation is O(n) if the current container contains n elements.- Angegeben von:
containsAsManyAs
in SchnittstelleStoringRequestable<E>
- Parameter:
iterable
-- Gibt zurück:
- true if the current
StoringRequestable
contains as many elements as the given container, false otherwise.
-
containsEqualing
The time 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, false otherwise.
-
containsExactlyEqualingInSameOrder
The time complexity of this implementation is O(m*n) if: The currentContainer
contains m elements. The given iterable contains n elements.- Angegeben von:
containsExactlyEqualingInSameOrder
in SchnittstelleStoringRequestable<E>
- Parameter:
iterable
-- Gibt zurück:
- true if the current
StoringRequestable
contains exactly elements that equal the elements of given iterable in the same order, false otherwise.
-
containsExactlyInSameOrder
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsExactlyInSameOrder
in SchnittstelleStoringRequestable<E>
- Parameter:
iterable
-- Gibt zurück:
- true if the current
StoringRequestable
contains exactly the elements of the given iterable in the same order, false otherwise.
-
containsLessThan
The time complexity of this implementation is O(n) if the given iterable contains n elements.- Angegeben von:
containsLessThan
in SchnittstelleStoringRequestable<E>
- Parameter:
iterable
-- Gibt zurück:
- true if the current
StoringRequestable
contains less elements than the given container, false otherwise
-
containsMoreThan
The time complexity of this implementation is O(n) if the given iterable contains n elements.- Angegeben von:
containsMoreThan
in SchnittstelleStoringRequestable<E>
- Parameter:
iterable
-- Gibt zurück:
- true if the current
StoringRequestable
contains more elements than the given container, false otherwise.
-
containsNone
The time 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. Ignores null elements.
-
containsNone
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsNone
in SchnittstelleStoringRequestable<E>
- Parameter:
object
-objects
-- Gibt zurück:
- true if the current
StoringRequestable
does not contain the given object and none of the given objects, false otherwise.
-
containsNoneOf
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -n objects are given.- Angegeben von:
containsNoneOf
in SchnittstelleStoringRequestable<E>
- Parameter:
elements
-- Gibt zurück:
- true if the current
StoringRequestable
does not contain any of the given objects.
-
containsOnce
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsOnce
in SchnittstelleStoringRequestable<E>
- Parameter:
object
-- Gibt zurück:
- true if the current
StoringRequestable
contains the given object exactly 1 time, false otherwise.
-
containsOne
public final boolean containsOne()The time 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, false otherwise.
-
containsOne
The time 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, false otherwise. Ignores null elements.
-
containsOneEqualing
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsOneEqualing
in SchnittstelleStoringRequestable<E>
- Parameter:
object
-- Gibt zurück:
- true if the current
StoringRequestable
contains exactly 1 element that equals the given object, false otherwise.
-
containsOnly
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
containsOnly
in SchnittstelleStoringRequestable<E>
- Parameter:
selector
-- Gibt zurück:
- true if the current
StoringRequestable
contains only elements the given selector selects. Null element are regarded as unselectable.
-
getAverage
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getAverage
in SchnittstelleIStatisticalConainer<E>
- Parameter:
valueMapper
-- Gibt zurück:
- the average of the values the given valueMapper maps from the
elements of the current
IStatisticalConainer
. Maps null elements to 0.0.
-
getAverageOrZero
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getAverageOrZero
in SchnittstelleIStatisticalConainer<E>
- Parameter:
mapper
-- Gibt zurück:
- the average of the values the given valueMapper maps from the
elements of the current
IStatisticalConainer
if the currentIStatisticalConainer
contains any, 0.0 otherwise. Maps null elements to 0.0.
-
getCount
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getCount
in SchnittstelleICountingContainer<E>
- Parameter:
selector
-- Gibt zurück:
- the number of elements the given selector selects from the current
ICountingContainer
. Ignores null elements.
-
getCountOf
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getCountOf
in SchnittstelleICountingContainer<E>
- Parameter:
element
-- Gibt zurück:
- the number how many times the current
ICountingContainer
contains the given element.
-
get1BasedIndexOfFirst
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
get1BasedIndexOfFirst
in SchnittstelleIndexRequestable<E>
- Parameter:
selector
-- Gibt zurück:
- the 1-based index of the first element the given selector selects
from the current
IndexRequestable
. Ignores null elements.
-
get1BasedIndexOfFirstEqualElement
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
get1BasedIndexOfFirstEqualElement
in SchnittstelleIndexRequestable<E>
- Parameter:
object
-- Gibt zurück:
- the 1-based index of the first element of the current
IndexRequestable
that equals the given object.
-
get1BasedIndexOfFirstOccurrenceOf
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
get1BasedIndexOfFirstOccurrenceOf
in SchnittstelleIndexRequestable<E>
- Parameter:
object
-- Gibt zurück:
- the 1-based index of the first occurrence of the given object in the
current
IndexRequestable
.
-
getMax
The time 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 comparableMapper maps from the elements of the currentIStatisticalConainer
.- Parameter:
comparableMapper
-- Gibt zurück:
- the biggest
Comparable
the given comparableMapper maps from the elements of the currentIStatisticalConainer
. Ignores null elements.
-
getMaxOrZero
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getMaxOrZero
in SchnittstelleIStatisticalConainer<E>
- Parameter:
numberMapper
-- Gibt zurück:
- the biggest number the given numberMapper maps from the non-null
elements of the current
IStatisticalConainer
if the currentIStatisticalConainer
contains non-null elements, 0.0 otherwise.
-
getMedian
The time complexity of this implementation is O(n*log(n)) if the currentContainer
contains n elements.- Angegeben von:
getMedian
in SchnittstelleIStatisticalConainer<E>
- Parameter:
numberMapper
-- Gibt zurück:
- the median of the numbers the given numberMapper maps from the
elements of the current
IStatisticalConainer
. Maps null elements to 0.0.
-
getMedianOrZero
The time 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 numbers the given numberMapper maps from the
elements of the current
IStatisticalConainer
if the currentIStatisticalConainer
is not empty, 0.0 otherwise. Maps null elements to 0.0.
-
getMin
The time 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 comparableMapper maps from the elements of the currentIStatisticalConainer
.- Parameter:
comparableMapper
-- Gibt zurück:
- the smallest
Comparable
the given comparableMapper maps from the elements of the currentIStatisticalConainer
. Ignores null elements.
-
getMinOrZero
- Angegeben von:
getMinOrZero
in SchnittstelleIStatisticalConainer<E>
- Parameter:
numberMapper
-- Gibt zurück:
- the smallest number the given numberMapper maps from the non-null
elements of the current
IStatisticalConainer
if the currentIStatisticalConainer
contains non-null elements, 0.0 otherwise.
-
getOptionalStoredFirst
The time complexity of this implementation is O(1).- Angegeben von:
getOptionalStoredFirst
in SchnittstelleSingleSearchable<E>
- Gibt zurück:
- a
Optional
with the first element of the currentSingleSearchable
if the currentSingleSearchable
is not empty and if the first element of the currentSingleSearchable
is not null, an emptyOptional
otherwise.
-
getOptionalStoredFirst
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getOptionalStoredFirst
in SchnittstelleSingleSearchable<E>
- Parameter:
selector
-- Gibt zurück:
- a new
Optional
with the first element the given selector selects from the currentSingleSearchable
if the currentSingleSearchable
contains an element the given selector selects, an emptyOptional
otherwise. Ignores null elements.
-
getStoredByMax
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredByMax
in SchnittstelleSingleSearchable<E>
- Typparameter:
C
- is the type of theComparable
s the given comparableMapper maps from the elements of the currentSingleSearchable
.- Parameter:
comparableMapper
-- Gibt zurück:
- the element with the biggest
Comparable
the given comparableMapper maps from the elements of the currentSingleSearchable
. Ignores null elements.
-
getStoredByMin
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredByMin
in SchnittstelleSingleSearchable<E>
- Typparameter:
C
- is the type of theComparable
s the given comparableMapper maps from the elements of the currentSingleSearchable
.- Parameter:
comparableMapper
-- Gibt zurück:
- the element with the smallest
Comparable
the given comparableMapper maps from the elements of the currentSingleSearchable
. Ignores null elements.
-
getStoredFirst
The time complexity of this implementation is O(1).- Angegeben von:
getStoredFirst
in SchnittstelleSingleSearchable<E>
- Gibt zurück:
- the first element of the current
SingleSearchable
. The element can be null.
-
getStoredFirst
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredFirst
in SchnittstelleSingleSearchable<E>
- Parameter:
selector
-- Gibt zurück:
- the first element the given selector selects from the current
SingleSearchable
. Ignores null elements.
-
getStoredFirstOfType
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredFirstOfType
in SchnittstelleSingleSearchable<E>
- Typparameter:
E2
- is the given type.- Parameter:
type
-- Gibt zurück:
- the first element from the current
SingleSearchable
that is of the given type.
-
getStoredInGroups
The time complexity of this implementation is O(m*n) if: -The currentContainer
contains m elements. -The given norm assignes the elements of the currentContainer
in n groups.- Angegeben von:
getStoredInGroups
in SchnittstelleMultiSearchable<E>
- Parameter:
norm
-- Gibt zurück:
- a new
IContainer
with the elements of the currentMultiSearchable
grouped by the given norm. Ignores null elements.
-
getStoredLast
The time complexity of this implementation is O(1) or O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredLast
in SchnittstelleSingleSearchable<E>
- Gibt zurück:
- the last element of the current
SingleSearchable
. The element can be null.
-
getStoredOfType
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredOfType
in SchnittstelleMultiSearchable<E>
- Typparameter:
E2
- is the type of the elements of the returnedSingleSearchable
.- Parameter:
type
-- Gibt zurück:
- a new
IContainer
with the elements from the currentMultiSearchable
that are of the given type.
-
getStoredOne
The time complexity of this implementation is O(1).- Angegeben von:
getStoredOne
in SchnittstelleSingleSearchable<E>
- Gibt zurück:
- the one element of the current
SingleSearchable
. The element can be null.
-
getStoredOne
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredOne
in SchnittstelleSingleSearchable<E>
- Parameter:
selector
-- Gibt zurück:
- the one element the given selector selects from the current
SingleSearchable
. Ignores null elements.
-
getStoredOthers
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredOthers
in SchnittstelleMultiSearchable<E>
- Parameter:
selector
-- Gibt zurück:
- a new
IContainer
with the elements from the currentMultiSearchable
the given selector skips. Ignores null elements.
-
getStoredSelected
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getStoredSelected
in SchnittstelleMultiSearchable<E>
- Parameter:
selector
-- Gibt zurück:
- a new
IContainer
with the elements the given selector selects from the currentMultiSearchable
. Ignores null elements.
-
getStandardDeviation
The time 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 numbers the given numberMapper maps
from the elements of the current
IStatisticalConainer
.
-
getSum
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getSum
in SchnittstelleIStatisticalConainer<E>
- Parameter:
valueMapper
-- Gibt zurück:
- the sum of the values the given valueMapper maps from the elements of
the current
IStatisticalConainer
. Maps null elements to 0.0.
-
getSumOfInts
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getSumOfInts
in SchnittstelleIStatisticalConainer<E>
- Parameter:
intMapper
-- Gibt zurück:
- the sum of the ints the given intMapper maps from the elements of the
current
IStatisticalConainer
. Maps null elements to 0.0.
-
getVariance
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
getVariance
in SchnittstelleIStatisticalConainer<E>
- Parameter:
numberMapper
-- Gibt zurück:
- the variance of the numbers the given numberMapper maps from the
elements of the current
IStatisticalConainer
. Maps null elements to 0.0.
-
getViewFrom1BasedStartIndex
The time complexity of this implementation is O(1).- Angegeben von:
getViewFrom1BasedStartIndex
in SchnittstelleIViewProviderContainer<E>
- Parameter:
param1BasedStartIndex
-- Gibt zurück:
- a new view of the current
IViewProviderContainer
from the given param1BasedStartIndex.
-
getViewFrom1BasedStartIndexTo1BasedEndIndex
public final IContainer<E> getViewFrom1BasedStartIndexTo1BasedEndIndex(int param1BasedStartIndex, int param1BasedEndIndex) The time complexity of this implementation is O(1).- Angegeben von:
getViewFrom1BasedStartIndexTo1BasedEndIndex
in SchnittstelleIViewProviderContainer<E>
- Parameter:
param1BasedStartIndex
-param1BasedEndIndex
-- Gibt zurück:
- a new view of the current
IViewProviderContainer
from the given param1BasedStartIndex to the given param1BasedEndIndex.
-
getViewTo1BasedEndIndex
The time complexity of this implementation is O(1).- Angegeben von:
getViewTo1BasedEndIndex
in SchnittstelleIViewProviderContainer<E>
- Parameter:
param1BasedEndIndex
-- Gibt zurück:
- a new view
IContainer
of the currentIViewProviderContainer
to the given param1BasedEndIndex.
-
getViewWithoutFirst
The time complexity of this implementation is O(1).- Angegeben von:
getViewWithoutFirst
in SchnittstelleIViewProviderContainer<E>
- Gibt zurück:
- a new view
IContainer
view of the currentIViewProviderContainer
without the first element.
-
getViewWithoutFirst
The time complexity of this implementation is O(1).- Angegeben von:
getViewWithoutFirst
in SchnittstelleIViewProviderContainer<E>
- Parameter:
n
-- Gibt zurück:
- a new view
IContainer
view of the currentIViewProviderContainer
without the first n elements.
-
getViewWithoutLast
The time complexity of this implementation is O(1).- Angegeben von:
getViewWithoutLast
in SchnittstelleIViewProviderContainer<E>
- Gibt zurück:
- a new view
IContainer
view of the currentIViewProviderContainer
without the last element.
-
getViewWithoutLast
The time complexity of this implementation is O(1).- Angegeben von:
getViewWithoutLast
in SchnittstelleIViewProviderContainer<E>
- Parameter:
n
-- Gibt zurück:
- a new view
IContainer
of the currentIViewProviderContainer
without the last n elements.
-
isEmpty
public final boolean isEmpty()The time complexity of this implementation is O(1) if the current Container does not contain null elements. The time complexity of this implementation is O(n) if the current Container contains null elements and if the current Container contains n elements.- Angegeben von:
isEmpty
in SchnittstelleEmptinessRequestable
- Gibt zurück:
- true if
EmptinessRequestable
does not contain an element.
-
to
The time complexity of this implementation is O(n) if the currentContainer
contains n elements. -
toArray
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toArray
in SchnittstelleArrayMappable<E>
- Gibt zurück:
- a new array with the elements of the current
ArrayMappable
.
-
toByteArray
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toByteArray
in SchnittstelleArrayMappable<E>
- Parameter:
byteMapper
-- Gibt zurück:
- a new array with the bytes the given byteMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to 0.
-
toCharArray
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toCharArray
in SchnittstelleArrayMappable<E>
- Parameter:
charMapper
-- Gibt zurück:
- a new array with the chars the given charMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to a space.
-
toConcatenatedString
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toConcatenatedString
in SchnittstelleStringMappable
- Gibt zurück:
- a concatenation of the
String
representations of the elements of the currentIContainer
.
-
toDoubleArray
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toDoubleArray
in SchnittstelleArrayMappable<E>
- Parameter:
doubleMapper
-- Gibt zurück:
- a new array with the doubles the given doubleMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to 0.0.
-
toIntArray
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toIntArray
in SchnittstelleArrayMappable<E>
- Parameter:
intMapper
-- Gibt zurück:
- a new array with the ints the given intMapper maps from the elements
of the current
ArrayMappable
. Maps null elements to 0. Maps null elements to 0.
-
toLongArray
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toLongArray
in SchnittstelleArrayMappable<E>
- Parameter:
longMapper
-- Gibt zurück:
- a new array with the longs the given longMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to 0.
-
toMultiple
The time complexity of this implementation is O(m*n) if: -The current *Container
contains m elements. -On average, the given multipleMapper maps n elements from an element of the currentContainer
.- Angegeben von:
toMultiple
in SchnittstelleMappable<E>
- Typparameter:
E2
- is the type of the elements of theIContainer
s the given multipleMapper maps from the elements of the currentMappable
.- Parameter:
multipleMapper
-- Gibt zurück:
- a new
IContainer
with the elements of theIContainer
s the given multipleMapper maps from the elements of the currentMappable
.
-
toNumbers
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toNumbers
in SchnittstelleMappable<E>
- Typparameter:
N
- is the type of theNumber
s the given numberMapper maps from the elements of the currentMappable
.- Parameter:
numberMapper
-- Gibt zurück:
- a new
IContainer
with theNumber
s the given numberMapper maps from the elements of the currentMappable
. Maps null elements to 0.0.
-
toReversedList
The time 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 reversed order.
-
toStringArray
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStringArray
in SchnittstelleArrayMappable<E>
- Gibt zurück:
- a new array with the
String
representations of the elements of the currentArrayMappable
.
-
toStrings
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStrings
in SchnittstelleMappable<E>
- Gibt zurück:
- a new
IContainer
with theString
representations of the elements of the currentIContainer
.
-
toStringWithSeparator
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStringWithSeparator
in SchnittstelleStringMappable
- Parameter:
separator
-- Gibt zurück:
- a concatenation of the
String
representations of the elements of the currentStringMappable
with the given separator in between.
-
toStringWithSeparator
The time complexity of this implementation is O(n) if the currentContainer
contains n elements.- Angegeben von:
toStringWithSeparator
in SchnittstelleStringMappable
- Parameter:
separator
-- Gibt zurück:
- a concatenation of the
String
representations of the elements of the currentStringMappable
with the given separator in between.
-
createEmptyMutableList
- Typparameter:
E2
- is the type of the elements the createdILinkedList
can contain.- Parameter:
marker
-- Gibt zurück:
- a new empty
ILinkedList
.
-