Interface IArrayList<E>
- Type Parameters:
E- is the type of the elements of aIArrayList.
- All Superinterfaces:
AggregationRequestable<E>, ArrayMappable<E>, Clearable, Copyable<IArrayList<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
- All Known Implementing Classes:
ArrayList
A
IArrayList is a IContainer that can add and remove
elements.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given element at the end of the currentIArrayList.voidAdds the given elements at the end of the currentIArrayList.<T extends E>
voidaddAtEnd(T... elements) Adds the given elements at the end of the currentIArrayList.voidinsertAtOneBasedIndex(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 Filterable
getStoredOfType, getStoredOthers, getStoredSelectedMethods inherited from interface Groupable
getStoredInGroupsMethods inherited from interface IContainer
toOrderedList, toReversedListMethods inherited from interface IFilteringContainerViewProvider
getViewOfStoredSelectedMethods inherited from interface IIntervallContainerViewProvider
getViewFromOneBasedStartIndex, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLastMethods inherited from interface IMappingContainerViewProvider
getViewOfMethods inherited from interface IndexRequestable
getOneBasedIndexOfFirst, getOneBasedIndexOfFirstEqualElement, getOneBasedIndexOfFirstOccurrenceOfMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface IterableWithCopyableIterator
iteratorMethods inherited from interface Mappable
to, toMultiples, toNumbers, toStrings, toWithOneBasedIndexMethods 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
-
addAtEnd
Adds the given element at the end of the currentIArrayList.- Parameters:
element-- Throws:
RuntimeException- if the given elements is null.
-
addAtEnd
Adds the given elements at the end of the currentIArrayList. The elements will be added in the given order.- Type Parameters:
T- is the type of the given elements.- Parameters:
elements-- Throws:
RuntimeException- if the given elements is null.RuntimeException- if one of the given elements is null.
-
addAtEnd
Adds the given elements at the end of the currentIArrayList. The elements will be added in the given order.- Parameters:
elements-- Throws:
RuntimeException- if the given elements is null.RuntimeException- if one of the given elements is null.
-
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.
-