public interface MutableShortList extends MutableShortCollection, ShortList
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
short... source) |
boolean |
addAllAtIndex(int index,
ShortIterable source) |
void |
addAtIndex(int index,
short element) |
MutableShortList |
asSynchronized() |
MutableShortList |
asUnmodifiable() |
<V> MutableList<V> |
collect(ShortToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V> MutableList<V> |
collectWithIndex(ShortIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableShortList |
distinct() |
default MutableShortList |
newEmpty()
Creates a new empty mutable version of the same List type.
|
MutableShortList |
reject(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
short |
removeAtIndex(int index) |
MutableShortList |
reverseThis() |
MutableShortList |
select(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
short |
set(int index,
short element) |
default MutableShortList |
shuffleThis()
Randomly permutes this list mutating its contents and returns the same list (this).
|
default MutableShortList |
shuffleThis(Random rnd)
Randomly permutes this list mutating its contents and returns the same list (this).
|
MutableShortList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
default MutableShortList |
sortThis(ShortComparator comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
default <T> MutableShortList |
sortThisBy(ShortToObjectFunction<T> function)
Sorts the internal data structure of this list based on the natural order of the key returned by
function. |
default <T> MutableShortList |
sortThisBy(ShortToObjectFunction<T> function,
Comparator<? super T> comparator)
Sorts the internal data structure of this list based on the key returned by
function using the provided comparator. |
MutableShortList |
subList(int fromIndex,
int toIndex) |
default void |
swap(int index1,
int index2) |
default MutableShortList |
tap(ShortProcedure procedure) |
ImmutableShortList |
toImmutable()
Returns an immutable copy of this list.
|
MutableShortList |
toReversed() |
MutableShortList |
with(short element) |
MutableShortList |
withAll(ShortIterable elements) |
MutableShortList |
without(short element) |
MutableShortList |
withoutAll(ShortIterable elements) |
default <T> MutableList<ShortObjectPair<T>> |
zip(Iterable<T> list)
Returns a
MutableList formed from this MutableShortList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<ShortShortPair> |
zipShort(ShortIterable iterable)
Returns a
MutableList formed from this MutableShortList and another ShortList by
combining corresponding elements in pairs. |
add, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIteratorbinarySearch, dotProduct, equals, get, hashCode, lastIndexOfasReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOfallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid addAtIndex(int index,
short element)
boolean addAllAtIndex(int index,
short... source)
boolean addAllAtIndex(int index,
ShortIterable source)
short removeAtIndex(int index)
short set(int index,
short element)
default void swap(int index1,
int index2)
MutableShortList select(ShortPredicate predicate)
ShortIterableselect in interface MutableShortCollectionselect in interface OrderedShortIterableselect in interface ReversibleShortIterableselect in interface ShortIterableselect in interface ShortListMutableShortList reject(ShortPredicate predicate)
ShortIterablereject in interface MutableShortCollectionreject in interface OrderedShortIterablereject in interface ReversibleShortIterablereject in interface ShortIterablereject in interface ShortListMutableShortList with(short element)
with in interface MutableShortCollectionMutableShortList without(short element)
without in interface MutableShortCollectionMutableShortList withAll(ShortIterable elements)
withAll in interface MutableShortCollectionMutableShortList withoutAll(ShortIterable elements)
withoutAll in interface MutableShortCollectiondefault MutableShortList tap(ShortProcedure procedure)
tap in interface MutableShortCollectiontap in interface ShortIterabletap in interface ShortList<V> MutableList<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface MutableShortCollectioncollect in interface OrderedShortIterablecollect in interface ReversibleShortIterablecollect in interface ShortIterablecollect in interface ShortListdefault <V> MutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedShortIterablecollectWithIndex in interface ReversibleShortIterablecollectWithIndex in interface ShortListMutableShortList reverseThis()
MutableShortList toReversed()
toReversed in interface ReversibleShortIterabletoReversed in interface ShortListMutableShortList distinct()
distinct in interface ReversibleShortIterabledistinct in interface ShortListMutableShortList sortThis()
default MutableShortList sortThis(ShortComparator comparator)
default <T> MutableShortList sortThisBy(ShortToObjectFunction<T> function)
function.default <T> MutableShortList sortThisBy(ShortToObjectFunction<T> function, Comparator<? super T> comparator)
function using the provided comparator.default MutableShortList shuffleThis()
java.util.Random as the source of randomness.default MutableShortList shuffleThis(Random rnd)
MutableShortList asUnmodifiable()
asUnmodifiable in interface MutableShortCollectionMutableShortList asSynchronized()
asSynchronized in interface MutableShortCollectionImmutableShortList toImmutable()
toImmutable in interface MutableShortCollectiontoImmutable in interface ShortListMutableShortList subList(int fromIndex, int toIndex)
subList in interface ShortListList.subList(int fromIndex, int toIndex)default MutableList<ShortShortPair> zipShort(ShortIterable iterable)
MutableList formed from this MutableShortList and another ShortList by
combining corresponding elements in pairs. If one of the two ShortLists is longer than the other, its
remaining elements are ignored.default <T> MutableList<ShortObjectPair<T>> zip(Iterable<T> list)
MutableList formed from this MutableShortList and a ListIterable by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.default MutableShortList newEmpty()
newEmpty in interface MutableShortCollectionCopyright © 2004–2020. All rights reserved.