public class SynchronizedShortList extends AbstractSynchronizedShortCollection implements MutableShortList
MutableShortList. It is imperative that the user manually synchronize on the on the
collection when iterating over it using an iterator or stream.
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableShortList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedShortList(MutableShortList list) |
SynchronizedShortList(MutableShortList list,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
short... source) |
boolean |
addAllAtIndex(int index,
ShortIterable source) |
void |
addAtIndex(int index,
short element) |
LazyShortIterable |
asLazy() |
LazyShortIterable |
asReversed() |
MutableShortList |
asSynchronized() |
MutableShortList |
asUnmodifiable() |
int |
binarySearch(short value) |
<V> MutableList<V> |
collect(ShortToObjectFunction<? extends V> function) |
<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.
|
<V,R extends Collection<V>> |
collectWithIndex(ShortIntToObjectFunction<? extends V> function,
R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableShortList |
distinct() |
long |
dotProduct(ShortList list) |
boolean |
equals(Object otherList) |
void |
forEachInBoth(ShortList other,
ShortShortProcedure procedure) |
void |
forEachWithIndex(ShortIntProcedure procedure) |
short |
get(int index) |
short |
getFirst() |
short |
getLast() |
int |
hashCode() |
int |
indexOf(short value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectShortIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(short value) |
MutableShortList |
newEmpty() |
MutableShortList |
reject(ShortPredicate predicate) |
MutableShortList |
rejectWithIndex(ShortIntPredicate predicate)
Returns a new MutableShortList excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableShortCollection> |
rejectWithIndex(ShortIntPredicate predicate,
R target)
Returns a new MutableShortCollection excluding all elements with corresponding indexes matching the specified predicate.
|
short |
removeAtIndex(int index) |
MutableShortList |
reverseThis() |
MutableShortList |
select(ShortPredicate predicate) |
MutableShortList |
selectWithIndex(ShortIntPredicate predicate)
Returns a new MutableShortList including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableShortCollection> |
selectWithIndex(ShortIntPredicate predicate,
R target)
Returns a new MutableShortCollection including all elements with corresponding indexes matching the specified predicate.
|
short |
set(int index,
short element) |
MutableShortList |
shuffleThis() |
MutableShortList |
shuffleThis(Random rnd) |
MutableShortList |
sortThis() |
MutableShortList |
sortThis(ShortComparator comparator) |
<T> MutableShortList |
sortThisBy(ShortToObjectFunction<T> function) |
<T> MutableShortList |
sortThisBy(ShortToObjectFunction<T> function,
Comparator<? super T> comparator) |
MutableShortList |
subList(int fromIndex,
int toIndex) |
ImmutableShortList |
toImmutable() |
MutableShortList |
toReversed() |
SynchronizedShortList |
with(short element) |
SynchronizedShortList |
withAll(ShortIterable elements) |
SynchronizedShortList |
without(short element) |
SynchronizedShortList |
withoutAll(ShortIterable elements) |
<T> MutableList<ShortObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<ShortShortPair> |
zipShort(ShortIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIterator, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringswap, tapadd, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIteratorallSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedShortList(MutableShortList list)
public SynchronizedShortList(MutableShortList list, Object newLock)
public short getFirst()
getFirst in interface OrderedShortIterablepublic short getLast()
getLast in interface ReversibleShortIterablepublic int indexOf(short value)
indexOf in interface OrderedShortIterablepublic int lastIndexOf(short value)
lastIndexOf in interface ShortListpublic void addAtIndex(int index,
short element)
addAtIndex in interface MutableShortListpublic boolean addAllAtIndex(int index,
short... source)
addAllAtIndex in interface MutableShortListpublic boolean addAllAtIndex(int index,
ShortIterable source)
addAllAtIndex in interface MutableShortListpublic short removeAtIndex(int index)
removeAtIndex in interface MutableShortListpublic short set(int index,
short element)
set in interface MutableShortListpublic SynchronizedShortList with(short element)
with in interface MutableShortCollectionwith in interface MutableShortListwith in class AbstractSynchronizedShortCollectionpublic SynchronizedShortList without(short element)
without in interface MutableShortCollectionwithout in interface MutableShortListwithout in class AbstractSynchronizedShortCollectionpublic SynchronizedShortList withAll(ShortIterable elements)
withAll in interface MutableShortCollectionwithAll in interface MutableShortListwithAll in class AbstractSynchronizedShortCollectionpublic SynchronizedShortList withoutAll(ShortIterable elements)
withoutAll in interface MutableShortCollectionwithoutAll in interface MutableShortListwithoutAll in class AbstractSynchronizedShortCollectionpublic MutableShortList select(ShortPredicate predicate)
select in interface MutableShortCollectionselect in interface MutableShortListselect in interface ShortListselect in interface OrderedShortIterableselect in interface ReversibleShortIterableselect in interface ShortIterableselect in class AbstractSynchronizedShortCollectionpublic MutableShortList reject(ShortPredicate predicate)
reject in interface MutableShortCollectionreject in interface MutableShortListreject in interface ShortListreject in interface OrderedShortIterablereject in interface ReversibleShortIterablereject in interface ShortIterablereject in class AbstractSynchronizedShortCollectionpublic <V> MutableList<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface MutableShortCollectioncollect in interface MutableShortListcollect in interface ShortListcollect in interface OrderedShortIterablecollect in interface ReversibleShortIterablecollect in interface ShortIterablecollect in class AbstractSynchronizedShortCollectionpublic MutableShortList sortThis()
sortThis in interface MutableShortListpublic MutableShortList sortThis(ShortComparator comparator)
sortThis in interface MutableShortListpublic <T> MutableShortList sortThisBy(ShortToObjectFunction<T> function)
sortThisBy in interface MutableShortListpublic <T> MutableShortList sortThisBy(ShortToObjectFunction<T> function, Comparator<? super T> comparator)
sortThisBy in interface MutableShortListpublic MutableShortList shuffleThis()
shuffleThis in interface MutableShortListpublic MutableShortList shuffleThis(Random rnd)
shuffleThis in interface MutableShortListpublic int binarySearch(short value)
binarySearch in interface ShortListpublic long dotProduct(ShortList list)
dotProduct in interface ShortListpublic boolean equals(Object otherList)
public int hashCode()
public LazyShortIterable asLazy()
asLazy in interface ShortIterableasLazy in class AbstractSynchronizedShortCollectionpublic MutableShortList asUnmodifiable()
asUnmodifiable in interface MutableShortCollectionasUnmodifiable in interface MutableShortListasUnmodifiable in class AbstractSynchronizedShortCollectionpublic MutableShortList asSynchronized()
asSynchronized in interface MutableShortCollectionasSynchronized in interface MutableShortListasSynchronized in class AbstractSynchronizedShortCollectionpublic ImmutableShortList toImmutable()
toImmutable in interface MutableShortCollectiontoImmutable in interface MutableShortListtoImmutable in interface ShortListtoImmutable in class AbstractSynchronizedShortCollectionpublic MutableShortList newEmpty()
newEmpty in interface MutableShortCollectionnewEmpty in interface MutableShortListpublic MutableShortList reverseThis()
reverseThis in interface MutableShortListpublic MutableShortList toReversed()
toReversed in interface MutableShortListtoReversed in interface ShortListtoReversed in interface ReversibleShortIterablepublic LazyShortIterable asReversed()
asReversed in interface ReversibleShortIterablepublic void forEachInBoth(ShortList other, ShortShortProcedure procedure)
forEachInBoth in interface ShortListpublic void forEachWithIndex(ShortIntProcedure procedure)
forEachWithIndex in interface OrderedShortIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectShortIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedShortIterableinjectIntoWithIndex in interface ReversibleShortIterablepublic MutableShortList distinct()
distinct in interface MutableShortListdistinct in interface ShortListdistinct in interface ReversibleShortIterablepublic MutableShortList subList(int fromIndex, int toIndex)
subList in interface MutableShortListsubList in interface ShortListpublic MutableList<ShortShortPair> zipShort(ShortIterable iterable)
zipShort in interface MutableShortListzipShort in interface ShortListpublic <T> MutableList<ShortObjectPair<T>> zip(Iterable<T> iterable)
zip in interface MutableShortListzip in interface ShortListpublic MutableShortList selectWithIndex(ShortIntPredicate predicate)
selectWithIndex in interface MutableShortListselectWithIndex in interface ShortListselectWithIndex in interface OrderedShortIterableselectWithIndex in interface ReversibleShortIterablepublic <R extends MutableShortCollection> R selectWithIndex(ShortIntPredicate predicate, R target)
selectWithIndex in interface OrderedShortIterablepublic MutableShortList rejectWithIndex(ShortIntPredicate predicate)
rejectWithIndex in interface MutableShortListrejectWithIndex in interface ShortListrejectWithIndex in interface OrderedShortIterablerejectWithIndex in interface ReversibleShortIterablepublic <R extends MutableShortCollection> R rejectWithIndex(ShortIntPredicate predicate, R target)
rejectWithIndex in interface OrderedShortIterablepublic <V> MutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex in interface MutableShortListcollectWithIndex in interface ShortListcollectWithIndex in interface OrderedShortIterablecollectWithIndex in interface ReversibleShortIterablepublic <V,R extends Collection<V>> R collectWithIndex(ShortIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedShortIterableCopyright © 2004–2022. All rights reserved.