MutableShortCollection
, OrderedShortIterable
, PrimitiveIterable
, ReversibleShortIterable
, ShortIterable
, ShortList
ShortArrayList
, SynchronizedShortList
, UnmodifiableShortList
public interface MutableShortList extends MutableShortCollection, ShortList
Modifier and Type | Method | 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) |
|
MutableShortList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableShortList |
subList(int fromIndex,
int toIndex) |
|
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, shortIterator
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
allSatisfy, 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, toBag, toList, toSet, toSortedArray, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf
void 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)
MutableShortList select(ShortPredicate predicate)
ShortIterable
select
in interface MutableShortCollection
select
in interface OrderedShortIterable
select
in interface ReversibleShortIterable
select
in interface ShortIterable
select
in interface ShortList
MutableShortList reject(ShortPredicate predicate)
ShortIterable
reject
in interface MutableShortCollection
reject
in interface OrderedShortIterable
reject
in interface ReversibleShortIterable
reject
in interface ShortIterable
reject
in interface ShortList
MutableShortList with(short element)
with
in interface MutableShortCollection
MutableShortList without(short element)
without
in interface MutableShortCollection
MutableShortList withAll(ShortIterable elements)
withAll
in interface MutableShortCollection
MutableShortList withoutAll(ShortIterable elements)
withoutAll
in interface MutableShortCollection
default MutableShortList tap(ShortProcedure procedure)
tap
in interface MutableShortCollection
tap
in interface ShortIterable
tap
in interface ShortList
<V> MutableList<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface MutableShortCollection
collect
in interface OrderedShortIterable
collect
in interface ReversibleShortIterable
collect
in interface ShortIterable
collect
in interface ShortList
default <V> MutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedShortIterable
collectWithIndex
in interface ReversibleShortIterable
collectWithIndex
in interface ShortList
MutableShortList reverseThis()
MutableShortList toReversed()
toReversed
in interface ReversibleShortIterable
toReversed
in interface ShortList
MutableShortList distinct()
distinct
in interface ReversibleShortIterable
distinct
in interface ShortList
MutableShortList sortThis()
MutableShortList asUnmodifiable()
asUnmodifiable
in interface MutableShortCollection
MutableShortList asSynchronized()
asSynchronized
in interface MutableShortCollection
ImmutableShortList toImmutable()
toImmutable
in interface MutableShortCollection
toImmutable
in interface ShortList
MutableShortList subList(int fromIndex, int toIndex)
subList
in interface ShortList
List.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 ShortList
s 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 MutableShortCollection
Copyright © 2004–2019. All rights reserved.