Package ch.nolix.coreapi.container.list
Schnittstelle ILinkedList<E>
- Typparameter:
E- is the type of the elements of aILinkedList.
- Alle Superschnittstellen:
AggregationRequestable<E>,ArrayMappable<E>,Clearable,Copyable<ILinkedList<E>>,CountRequestable<E>,EmptinessRequestable,Filterable<E>,Groupable<E>,IContainer<E>,IFilteringContainerViewProvider<E>,IIntervallContainerViewProvider<E>,IMappingContainerViewProvider<E>,IndexRequestable<E>,Iterable<E>,IterableWithCopyableIterator<E>,Mappable<E>,MaterializationRequestable,SingleSearchable<E>,StoringRequestable<E>,StringMappable
- Alle bekannten Implementierungsklassen:
LinkedList
A
ILinkedList is a IContainer that can add and remove
elements.- Version:
- 2022-07-04
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddAtBegin(E element) Adds the given element at the begin of the currentILinkedList.voidaddAtBegin(E[] elements) Adds the given elements at the begin of the currentILinkedList.voidaddAtBegin(E element, E... elements) Adds the given element and the given elements at the begin of the currentILinkedList.voidaddAtBegin(Iterable<? extends E> elements) Adds the given elements at the begin of the currentILinkedList.voidAdds the given element at the end of the currentILinkedList.voidAdds the given elements at the end of the currentILinkedList.voidAdds the given element and the given elements at the end of the currentILinkedList.voidAdds the given elements at the end of the currentILinkedList.voidRemoves all elements from the currentILinkedListthe given selector selects.voidremoveAllOccurrencesOf(Object element) Removes all occurrences of the given element from the currentILinkedList.Removes and returns the first element of the currentILinkedList.removeAndGetStoredFirst(Predicate<E> selector) Removes and returns the first element the given selector selects from the currentILinkedList.Removes and returns the last element of the currentILinkedList.voidRemoves the first element from the currentILinkedList.voidremoveFirst(Predicate<E> selector) Removes the first element the given selector selects from the currentILinkedListvoidremoveFirstOccurrenceOf(Object element) Removes the first occurrence of the given element from the currentILinkedList.voidRemoves the first element from the currentILinkedList.voidRemoves the last element from the currentILinkedList.voidRemoves the last element from the currentILinkedList.voidremoveStrictlyFirstOccurrenceOf(Object element) Removes the first occurrence of the given element from the currentILinkedList.voidreplaceFirst(Predicate<E> selector, E element) Replaces the first element the given selector selects from the currentILinkedListwith the given element.Von Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.AggregationRequestable
getAverage, getAverageOrZero, getMax, getMaxOrZero, getMedian, getMedianOrZero, getMin, getMinOrZero, getStandardDeviation, getSum, getSumOfInts, getVarianceVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.ArrayMappable
toArray, toByteArray, toCharArray, toDoubleArray, toIntArray, toLongArray, toStringArrayVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.CountRequestable
getCount, getCount, getCountOfVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.EmptinessRequestable
containsAny, isEmptyVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.base.Filterable
getStoredOfType, getStoredOthers, getStoredSelectedVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.base.Groupable
getStoredInGroupsVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.base.IContainer
toOrderedList, toReversedListVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.base.IFilteringContainerViewProvider
getViewOfStoredSelectedVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.base.IIntervallContainerViewProvider
getViewFromOneBasedStartIndex, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLastVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.base.IMappingContainerViewProvider
getViewOfVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.IndexRequestable
getOneBasedIndexOfFirst, getOneBasedIndexOfFirstEqualElement, getOneBasedIndexOfFirstOccurrenceOfVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliteratorVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.IterableWithCopyableIterator
iteratorVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.base.Mappable
to, toMultiples, toNumbers, toStrings, toWithOneBasedIndexVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.MaterializationRequestable
isMaterialized, isViewVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.SingleSearchable
getOptionalStoredFirst, getOptionalStoredFirst, getStoredAtOneBasedIndex, getStoredByMax, getStoredByMin, getStoredFirst, getStoredFirst, getStoredFirstOfType, getStoredLast, getStoredOne, getStoredOneVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.StoringRequestable
contains, containsAll, containsAll, containsAll, containsAny, containsAny, containsAnyOf, containsAnyOf, containsAsManyAs, containsEqualing, containsExactlyEqualingInSameOrder, containsExactlyInSameOrder, containsLessThan, containsMoreThan, containsNone, containsNone, containsNoneOf, containsOnce, containsOne, containsOne, containsOneEqualing, containsOnlyVon Schnittstelle geerbte Methoden ch.nolix.coreapi.container.commoncontainer.StringMappable
toConcatenatedString, toStringWithSeparator, toStringWithSeparator
-
Methodendetails
-
addAtBegin
Adds the given element at the begin of the currentILinkedList.- Parameter:
element-- Löst aus:
RuntimeException- if the given elements is null.
-
addAtBegin
Adds the given element and the given elements at the begin of the currentILinkedList. The elements will be added in the given order.- Parameter:
element-elements-- Löst aus:
RuntimeException- if the given element is null.RuntimeException- if one of the given elements is null.
-
addAtBegin
Adds the given elements at the begin of the currentILinkedList. The elements will be added in the given order.- Parameter:
elements-- Löst aus:
RuntimeException- if one of the given elements is null.
-
addAtBegin
Adds the given elements at the begin of the currentILinkedList. The elements will be added in the given order.- Parameter:
elements-- Löst aus:
RuntimeException- if one of the given elements is null.
-
addAtEnd
Adds the given element at the end of the currentILinkedList.- Parameter:
element-- Löst aus:
RuntimeException- if the given elements is null.
-
addAtEnd
Adds the given element and the given elements at the end of the currentILinkedList. The elements will be added in the given order.- Parameter:
element-elements-- Löst aus:
RuntimeException- if the given element is null.RuntimeException- if one of the given elements is null.
-
addAtEnd
Adds the given elements at the end of the currentILinkedList. The elements will be added in the given order.- Parameter:
elements-- Löst aus:
RuntimeException- if one of the given elements is null.
-
addAtEnd
Adds the given elements at the end of the currentILinkedList. The elements will be added in the given order.- Parameter:
elements-- Löst aus:
RuntimeException- if one of the given elements is null.
-
removeAll
Removes all elements from the currentILinkedListthe given selector selects.- Parameter:
selector-
-
removeAllOccurrencesOf
Removes all occurrences of the given element from the currentILinkedList.- Parameter:
element-
-
removeAndGetStoredFirst
E removeAndGetStoredFirst()Removes and returns the first element of the currentILinkedList.- Gibt zurück:
- the first element of the current
ILinkedList. - Löst aus:
RuntimeException- if the currentILinkedListis empty.
-
removeAndGetStoredFirst
Removes and returns the first element the given selector selects from the currentILinkedList.- Parameter:
selector-- Gibt zurück:
- the first element the given selector selects from the current
ILinkedList. - Löst aus:
RuntimeException- if the currentILinkedListdoes not contain an element the given selector selects.
-
removeAndGetStoredLast
E removeAndGetStoredLast()Removes and returns the last element of the currentILinkedList.- Gibt zurück:
- the last element of the current
ILinkedList. - Löst aus:
RuntimeException- if the currentILinkedListis empty.
-
removeFirst
void removeFirst()Removes the first element from the currentILinkedList. -
removeFirstStrictly
void removeFirstStrictly()Removes the first element from the currentILinkedList.- Löst aus:
RuntimeException- if the currentILinkedListis empty.
-
removeFirst
Removes the first element the given selector selects from the currentILinkedList- Parameter:
selector-
-
removeFirstOccurrenceOf
Removes the first occurrence of the given element from the currentILinkedList.- Parameter:
element-
-
removeLast
void removeLast()Removes the last element from the currentILinkedList. -
removeLastStrictly
void removeLastStrictly()Removes the last element from the currentILinkedList.- Löst aus:
RuntimeException- if the currentILinkedListis empty.
-
removeStrictlyFirstOccurrenceOf
Removes the first occurrence of the given element from the currentILinkedList.- Parameter:
element-- Löst aus:
RuntimeException- if the currentILinkedListdoes not contain the given element.
-
replaceFirst
Replaces the first element the given selector selects from the currentILinkedListwith the given element.- Parameter:
selector-element-- Löst aus:
RuntimeException- if the given element is null.
-