Interface IArrayList<E>
- Type Parameters:
E- the type of the elements of aIArrayList.
- All Superinterfaces:
AggregationRequestable<E>, BaseCountRequestable, Clearable, Copyable<IArrayList<E>>, CountRequestable<E>, EmptinessRequestable, ExtendedIterable<E>, IAppendableList<E>, Iterable<E>, IterableArrayProvider<E>, IterableByExtremumProvider<E>, IterableByIndexProvider<E>, IterableContainAnyRequestable, IterableContainEqualRequestable<E>, IterableContainMatchingRequestable<E>, IterableContainMultipleRequestable, IterableContainObjectRequestable, IterableFilterProvider<E>, IterableFilterViewProvider<E>, IterableFirstProvider<E>, IterableGroupProvider<E>, IterableIntervalViewProvider<E>, IterableLastProvider<E>, IterableMappedProvider<E>, IterableMappedViewProvider<E>, IterableOneBasedIndexRequestable<E>, IterableOrderProvider<E>, IterableStringProvider, IterableWithCopyableIterator<E>, MaterializationRequestable, SingleProvider<E>
- All Known Implementing Classes:
ArrayList
A
IArrayList is a ExtendedIterable that can add and remove
elements.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidinsertAtOneBasedIndex(int oneBasedIndex, E element) Adds the given element at the given oneBasedIndexMethods inherited from interface AggregationRequestable
getAverage, getAverageOrZero, getMax, getMaxOrZero, getMedian, getMedianOrZero, getMin, getMinOrZero, getStandardDeviation, getSum, getSumOfInts, getVarianceMethods inherited from interface BaseCountRequestable
getCountMethods inherited from interface CountRequestable
getCount, getCountOfMethods inherited from interface IAppendableList
addAtEnd, addAtEnd, addAtEndMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface IterableArrayProvider
toArray, toByteArray, toCharArray, toDoubleArray, toIntArray, toLongArray, toStringArrayMethods inherited from interface IterableByExtremumProvider
getStoredByMax, getStoredByMinMethods inherited from interface IterableByIndexProvider
getStoredAtOneBasedIndexMethods inherited from interface IterableContainAnyRequestable
containsAny, containsNonNull, containsOne, containsOneNoneNull, isEmptyMethods inherited from interface IterableContainEqualRequestable
containsEqual, containsNoEqual, containsOneEqualMethods inherited from interface IterableContainMatchingRequestable
containsMatching, containsMatchingOnly, containsNoMatching, containsOneMatchingMethods inherited from interface IterableContainMultipleRequestable
containsAll, containsAll, containsAny, containsAny, containsExactlyAllEqualInSameOrder, containsExactlyInSameOrder, containsNone, containsNoneMethods inherited from interface IterableContainObjectRequestable
contains, containsOnce, containsOnlyMethods inherited from interface IterableFilterProvider
getStoredOfType, getStoredOthers, getStoredSelectedMethods inherited from interface IterableFilterViewProvider
getViewOfStoredSelectedMethods inherited from interface IterableFirstProvider
getOptionalStoredFirst, getOptionalStoredFirst, getStoredFirst, getStoredFirst, getStoredFirstNonNull, getStoredFirstOfTypeMethods inherited from interface IterableGroupProvider
getStoredInGroupsMethods inherited from interface IterableIntervalViewProvider
getViewFromOneBasedStartIndex, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLastMethods inherited from interface IterableLastProvider
getStoredLastMethods inherited from interface IterableMappedProvider
to, toMultiples, toNumbers, toStrings, toWithOneBasedIndexMethods inherited from interface IterableMappedViewProvider
getViewOfMethods inherited from interface IterableOneBasedIndexRequestable
getOneBasedIndexOfFirst, getOneBasedIndexOfFirstEqualElement, getOneBasedIndexOfFirstOccurrenceOfMethods inherited from interface IterableOrderProvider
toOrdered, toReversedMethods inherited from interface IterableStringProvider
toConcatenatedString, toStringWithDelimiter, toStringWithDelimiterMethods inherited from interface IterableWithCopyableIterator
iteratorMethods inherited from interface MaterializationRequestable
isMaterialized, isViewMethods inherited from interface SingleProvider
getStoredSingle, getStoredSingle
-
Method Details
-
insertAtOneBasedIndex
Adds the given element at the given oneBasedIndex- Parameters:
oneBasedIndex-element-- Throws:
RuntimeException- if the given oneBasedIndex is not positive or bigger than the one-incremented number of the elements of the currentIArrayListRuntimeException- if the given elements is null
-