Serializable
, MutableShortCollection
, MutableShortList
, ShortList
, OrderedShortIterable
, ReversibleShortIterable
, PrimitiveIterable
, ShortIterable
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 FormConstructor | Description |
---|---|
SynchronizedShortList(MutableShortList list) |
|
SynchronizedShortList(MutableShortList list,
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 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) |
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(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, toString
add, addAll, addAll, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll, shortIterator
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
allSatisfy, 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, toSortedList
public SynchronizedShortList(MutableShortList list)
public SynchronizedShortList(MutableShortList list, Object newLock)
public short getFirst()
getFirst
in interface OrderedShortIterable
public short getLast()
getLast
in interface ReversibleShortIterable
public int indexOf(short value)
indexOf
in interface OrderedShortIterable
public int lastIndexOf(short value)
lastIndexOf
in interface ShortList
public void addAtIndex(int index, short element)
addAtIndex
in interface MutableShortList
public boolean addAllAtIndex(int index, short... source)
addAllAtIndex
in interface MutableShortList
public boolean addAllAtIndex(int index, ShortIterable source)
addAllAtIndex
in interface MutableShortList
public short removeAtIndex(int index)
removeAtIndex
in interface MutableShortList
public short set(int index, short element)
set
in interface MutableShortList
public SynchronizedShortList with(short element)
with
in interface MutableShortCollection
with
in interface MutableShortList
with
in class AbstractSynchronizedShortCollection
public SynchronizedShortList without(short element)
without
in interface MutableShortCollection
without
in interface MutableShortList
without
in class AbstractSynchronizedShortCollection
public SynchronizedShortList withAll(ShortIterable elements)
withAll
in interface MutableShortCollection
withAll
in interface MutableShortList
withAll
in class AbstractSynchronizedShortCollection
public SynchronizedShortList withoutAll(ShortIterable elements)
withoutAll
in interface MutableShortCollection
withoutAll
in interface MutableShortList
withoutAll
in class AbstractSynchronizedShortCollection
public MutableShortList select(ShortPredicate predicate)
ShortIterable
select
in interface MutableShortCollection
select
in interface MutableShortList
select
in interface OrderedShortIterable
select
in interface ReversibleShortIterable
select
in interface ShortIterable
select
in interface ShortList
select
in class AbstractSynchronizedShortCollection
public MutableShortList reject(ShortPredicate predicate)
ShortIterable
reject
in interface MutableShortCollection
reject
in interface MutableShortList
reject
in interface OrderedShortIterable
reject
in interface ReversibleShortIterable
reject
in interface ShortIterable
reject
in interface ShortList
reject
in class AbstractSynchronizedShortCollection
public <V> MutableList<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface MutableShortCollection
collect
in interface MutableShortList
collect
in interface OrderedShortIterable
collect
in interface ReversibleShortIterable
collect
in interface ShortIterable
collect
in interface ShortList
collect
in class AbstractSynchronizedShortCollection
public MutableShortList sortThis()
MutableShortList
sortThis
in interface MutableShortList
public int binarySearch(short value)
binarySearch
in interface ShortList
public long dotProduct(ShortList list)
dotProduct
in interface ShortList
public boolean equals(Object otherList)
ShortList
List.equals(Object)
.public int hashCode()
ShortList
List.hashCode()
.public LazyShortIterable asLazy()
ShortIterable
asLazy
in interface ShortIterable
asLazy
in class AbstractSynchronizedShortCollection
public MutableShortList asUnmodifiable()
asUnmodifiable
in interface MutableShortCollection
asUnmodifiable
in interface MutableShortList
asUnmodifiable
in class AbstractSynchronizedShortCollection
public MutableShortList asSynchronized()
asSynchronized
in interface MutableShortCollection
asSynchronized
in interface MutableShortList
asSynchronized
in class AbstractSynchronizedShortCollection
public ImmutableShortList toImmutable()
MutableShortList
toImmutable
in interface MutableShortCollection
toImmutable
in interface MutableShortList
toImmutable
in interface ShortList
toImmutable
in class AbstractSynchronizedShortCollection
public MutableShortList newEmpty()
MutableShortList
newEmpty
in interface MutableShortCollection
newEmpty
in interface MutableShortList
public MutableShortList reverseThis()
reverseThis
in interface MutableShortList
public MutableShortList toReversed()
toReversed
in interface MutableShortList
toReversed
in interface ReversibleShortIterable
toReversed
in interface ShortList
public LazyShortIterable asReversed()
asReversed
in interface ReversibleShortIterable
public void forEachWithIndex(ShortIntProcedure procedure)
forEachWithIndex
in interface OrderedShortIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectShortIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedShortIterable
injectIntoWithIndex
in interface ReversibleShortIterable
public MutableShortList distinct()
distinct
in interface MutableShortList
distinct
in interface ReversibleShortIterable
distinct
in interface ShortList
public MutableShortList subList(int fromIndex, int toIndex)
subList
in interface MutableShortList
subList
in interface ShortList
List.subList(int fromIndex, int toIndex)
public MutableList<ShortShortPair> zipShort(ShortIterable iterable)
MutableShortList
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.zipShort
in interface MutableShortList
zipShort
in interface ShortList
public <T> MutableList<ShortObjectPair<T>> zip(Iterable<T> iterable)
MutableShortList
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.zip
in interface MutableShortList
zip
in interface ShortList
public <V> MutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex
in interface MutableShortList
collectWithIndex
in interface OrderedShortIterable
collectWithIndex
in interface ReversibleShortIterable
collectWithIndex
in interface ShortList
public <V,R extends Collection<V>> R collectWithIndex(ShortIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedShortIterable
Copyright © 2004–2019. All rights reserved.