Package org.midheaven.collections
Interface ResizableSequence<T>
- Type Parameters:
T- type of the elements in the ResizableSequence
- All Superinterfaces:
Assortment<T>,Countable,EditableSequence<T>,Enumerable<T>,Iterable<T>,Sequence<T>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanPerforms add.booleanPerforms add All.booleanPerforms add All At.voidPerforms add At.voidPerforms add First.voidPerforms add Last.voidclear()Performs clear.Performs indexOf.Returns last Index Of.booleanPerforms remove.booleanPerforms remove All.removeAt(int index) Performs remove At.booleanPerforms remove If.voidreplaceAll(UnaryOperator<T> operator) Performs replaceAll.booleanPerforms retainAll.reversed()Performs reversed.voidsort(Comparator<? super T> c) Performs sort.subSequence(int fromIndex, int toIndex) Performs subSequence.default ResizableSequence<T> Returns to Sequence.Methods inherited from interface org.midheaven.collections.Assortment
containsAll, count, isEmptyMethods inherited from interface org.midheaven.collections.EditableSequence
setAt, setAt, setFirst, setLast, toUnmodifiableMethods inherited from interface org.midheaven.collections.Enumerable
allMatch, any, anyMatch, as, associate, associate, collect, concat, distinct, enumerator, flatMap, groupBy, limit, maximum, minimum, peek, reduce, reduce, skip, toArray, toArray, toArray, toDistinctAssortment, toSequence, with, zipMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.midheaven.collections.Sequence
cast, contains, filter, first, getAt, getAt, iterator, last, map, ofType, reverseIterator, sorted, subSequence, toCollection
-
Method Details
-
toSequence
Returns to Sequence.- Specified by:
toSequencein interfaceEditableSequence<T>- Specified by:
toSequencein interfaceEnumerable<T>- Specified by:
toSequencein interfaceSequence<T>- Returns:
- the result of toSequence
-
add
Performs add.- Parameters:
e- the e value- Returns:
- the result of add
-
remove
Performs remove.- Parameters:
o- the o value- Returns:
- the result of remove
-
addAll
Performs add All.- Parameters:
c- the c value- Returns:
- the result of addAll
-
addAllAt
Performs add All At.- Parameters:
index- the index valuec- the c value- Returns:
- the result of addAllAt
-
removeAll
Performs remove All.- Parameters:
c- the c value- Returns:
- the result of removeAll
-
retainAll
Performs retainAll.- Parameters:
c- the c value- Returns:
- the result of retainAll
-
replaceAll
Performs replaceAll.- Parameters:
operator- the operator value
-
sort
Performs sort.- Parameters:
c- the c value
-
clear
void clear()Performs clear. -
removeAt
Performs remove At.- Parameters:
index- the index value- Returns:
- the result of removeAt
-
addAt
Performs add At.- Parameters:
index- the index valueelement- the element value
-
removeIf
Performs remove If.- Parameters:
filter- the filter value- Returns:
- the result of removeIf
-
indexOf
Performs indexOf. -
lastIndexOf
Returns last Index Of.- Specified by:
lastIndexOfin interfaceSequence<T>- Parameters:
o- the o value- Returns:
- the result of lastIndexOf
-
subSequence
Performs subSequence.- Specified by:
subSequencein interfaceEditableSequence<T>- Specified by:
subSequencein interfaceSequence<T>- Parameters:
fromIndex- the fromIndex valuetoIndex- the toIndex value- Returns:
- the result of subSequence
-
addFirst
Performs add First.- Parameters:
e- the e value
-
addLast
Performs add Last.- Parameters:
e- the e value
-
reversed
ResizableSequence<T> reversed()Performs reversed.
-