java.io.Serializable, MutableShortCollection, MutableShortList, ShortList, OrderedShortIterable, ReversibleShortIterable, PrimitiveIterable, ShortIterablepublic 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 | Description |
|---|---|
SynchronizedShortList(MutableShortList list) |
|
SynchronizedShortList(MutableShortList list,
java.lang.Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAllAtIndex(int index,
short... source) |
|
boolean |
addAllAtIndex(int index,
ShortIterable source) |
|
void |
addAtIndex(int index,
short element) |
|
LazyShortIterable |
asLazy() |
Returns a LazyShortIterable adapter wrapping the source ShortIterable.
|
LazyShortIterable |
asReversed() |
|
MutableShortList |
asSynchronized() |
|
MutableShortList |
asUnmodifiable() |
|
int |
binarySearch(short value) |
|
<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.
|
<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 java.util.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(java.lang.Object otherList) |
Follows the same general contract as
List.equals(Object). |
void |
forEachWithIndex(ShortIntProcedure procedure) |
|
short |
get(int index) |
|
short |
getFirst() |
|
short |
getLast() |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode(). |
int |
indexOf(short value) |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectShortIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(short value) |
|
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) |
|
ImmutableShortList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableShortList |
toReversed() |
|
SynchronizedShortList |
with(short element) |
|
SynchronizedShortList |
withAll(ShortIterable elements) |
|
SynchronizedShortList |
without(short element) |
|
SynchronizedShortList |
withoutAll(ShortIterable elements) |
|
<T> MutableList<ShortObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns a
MutableList formed from this MutableShortList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<ShortShortPair> |
zipShort(ShortIterable iterable) |
Returns a
MutableList formed from this MutableShortList and another ShortList by
combining corresponding elements in pairs. |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIteratortapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringallSatisfy, anySatisfy, 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, toSortedListpublic SynchronizedShortList(MutableShortList list)
public SynchronizedShortList(MutableShortList list, java.lang.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)
ShortIterableselect in interface MutableShortCollectionselect in interface MutableShortListselect in interface OrderedShortIterableselect in interface ReversibleShortIterableselect in interface ShortIterableselect in interface ShortListselect in class AbstractSynchronizedShortCollectionpublic MutableShortList reject(ShortPredicate predicate)
ShortIterablereject in interface MutableShortCollectionreject in interface MutableShortListreject in interface OrderedShortIterablereject in interface ReversibleShortIterablereject in interface ShortIterablereject in interface ShortListreject in class AbstractSynchronizedShortCollectionpublic <V> MutableList<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface MutableShortCollectioncollect in interface MutableShortListcollect in interface OrderedShortIterablecollect in interface ReversibleShortIterablecollect in interface ShortIterablecollect in interface ShortListcollect in class AbstractSynchronizedShortCollectionpublic MutableShortList sortThis()
MutableShortListsortThis in interface MutableShortListpublic int binarySearch(short value)
binarySearch in interface ShortListpublic long dotProduct(ShortList list)
dotProduct in interface ShortListpublic boolean equals(java.lang.Object otherList)
ShortListList.equals(Object).public int hashCode()
ShortListList.hashCode().public LazyShortIterable asLazy()
ShortIterableasLazy 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()
MutableShortListtoImmutable in interface MutableShortCollectiontoImmutable in interface MutableShortListtoImmutable in interface ShortListtoImmutable in class AbstractSynchronizedShortCollectionpublic MutableShortList newEmpty()
MutableShortListnewEmpty in interface MutableShortCollectionnewEmpty in interface MutableShortListpublic MutableShortList reverseThis()
reverseThis in interface MutableShortListpublic MutableShortList toReversed()
toReversed in interface MutableShortListtoReversed in interface ReversibleShortIterabletoReversed in interface ShortListpublic LazyShortIterable asReversed()
asReversed in interface ReversibleShortIterablepublic 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 ReversibleShortIterabledistinct in interface ShortListpublic MutableShortList subList(int fromIndex, int toIndex)
subList in interface MutableShortListsubList in interface ShortListList.subList(int fromIndex, int toIndex)public MutableList<ShortShortPair> zipShort(ShortIterable iterable)
MutableShortListMutableList 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.zipShort in interface MutableShortListzipShort in interface ShortListpublic <T> MutableList<ShortObjectPair<T>> zip(java.lang.Iterable<T> iterable)
MutableShortListMutableList 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.zip in interface MutableShortListzip in interface ShortListpublic <V> MutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex in interface MutableShortListcollectWithIndex in interface OrderedShortIterablecollectWithIndex in interface ReversibleShortIterablecollectWithIndex in interface ShortListpublic <V,R extends java.util.Collection<V>> R collectWithIndex(ShortIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedShortIterableCopyright © 2004–2020. All rights reserved.