Interface IArrayList<E>
- Type Parameters:
E- the type of the elements of aIArrayList.
- All Superinterfaces:
AggregationRequestable<E>, ArrayMappable<E>, Clearable, Copyable<IArrayList<E>>, CountRequestable<E>, EmptinessRequestable, ExtendedIterable<E>, Filterable<E>, FilteringContainerViewProvider<E>, Groupable<E>, IAppendableList<E>, IndexRequestable<E>, IntervallContainerViewProvider<E>, Iterable<E>, IterableWithCopyableIterator<E>, Mappable<E>, MappingContainerViewProvider<E>, MaterializationRequestable, SingleSearchable<E>, StoringRequestable<E>, StringMappable
- All Known Implementing Classes:
ArrayList
public interface IArrayList<E>
extends Clearable, Copyable<IArrayList<E>>, IAppendableList<E>, ExtendedIterable<E>
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 ArrayMappable
toArray, toByteArray, toCharArray, toDoubleArray, toIntArray, toLongArray, toStringArrayMethods inherited from interface CountRequestable
getCount, getCount, getCountOfMethods inherited from interface EmptinessRequestable
containsAny, isEmptyMethods inherited from interface ExtendedIterable
toOrderedList, toReversedListMethods inherited from interface Filterable
getStoredOfType, getStoredOthers, getStoredSelectedMethods inherited from interface FilteringContainerViewProvider
getViewOfStoredSelectedMethods inherited from interface Groupable
getStoredInGroupsMethods inherited from interface IAppendableList
addAtEnd, addAtEnd, addAtEndMethods inherited from interface IndexRequestable
getOneBasedIndexOfFirst, getOneBasedIndexOfFirstEqualElement, getOneBasedIndexOfFirstOccurrenceOfMethods inherited from interface IntervallContainerViewProvider
getViewFromOneBasedStartIndex, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLastMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface IterableWithCopyableIterator
iteratorMethods inherited from interface Mappable
to, toMultiples, toNumbers, toStrings, toWithOneBasedIndexMethods inherited from interface MappingContainerViewProvider
getViewOfMethods inherited from interface MaterializationRequestable
isMaterialized, isViewMethods inherited from interface SingleSearchable
getOptionalStoredFirst, getOptionalStoredFirst, getStoredAtOneBasedIndex, getStoredByMax, getStoredByMin, getStoredFirst, getStoredFirst, getStoredFirstOfType, getStoredLast, getStoredOne, getStoredOneMethods inherited from interface StoringRequestable
contains, containsAllOf, containsAllOf, containsAny, containsAnyOf, containsAnyOf, containsAsManyAs, containsEqualing, containsExactlyEqualingInSameOrder, containsExactlyInSameOrder, containsLessThan, containsMoreThan, containsNone, containsNoneOf, containsNoneOf, containsOnce, containsOne, containsOne, containsOneEqualing, containsOnlyMethods inherited from interface StringMappable
toConcatenatedString, toStringWithSeparator, toStringWithSeparator
-
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 currentIArrayList.RuntimeException- if the given elements is null.
-