public final class SynchronizedShortList extends AbstractSynchronizedShortCollection implements MutableShortList
MutableShortList. It is imperative that the user manually synchronize on the collection when iterating over it using the
ShortIterator, as per Collections.synchronizedCollection(Collection).
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) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringtapadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratorallSatisfy, anySatisfy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, 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 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 reverseThis()
reverseThis in interface MutableShortListpublic MutableShortList toReversed()
toReversed in interface MutableShortListtoReversed in interface ShortListtoReversed in interface ReversibleShortIterablepublic 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 ShortListdistinct in interface ReversibleShortIterablepublic MutableShortList subList(int fromIndex, int toIndex)
subList in interface MutableShortListsubList in interface ShortListCopyright © 2004–2017. All rights reserved.