java.io.Serializable
, MutableIntCollection
, IntIterable
, IntList
, MutableIntList
, OrderedIntIterable
, ReversibleIntIterable
, PrimitiveIterable
public class SynchronizedIntList extends AbstractSynchronizedIntCollection implements MutableIntList
MutableIntList
. 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.
MutableIntList.asSynchronized()
,
MutableList.asSynchronized()
,
Serialized FormConstructor | Description |
---|---|
SynchronizedIntList(MutableIntList list) |
|
SynchronizedIntList(MutableIntList list,
java.lang.Object newLock) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
int... source) |
|
boolean |
addAllAtIndex(int index,
IntIterable source) |
|
void |
addAtIndex(int index,
int element) |
|
LazyIntIterable |
asLazy() |
Returns a LazyIntIterable adapter wrapping the source IntIterable.
|
LazyIntIterable |
asReversed() |
|
MutableIntList |
asSynchronized() |
|
MutableIntList |
asUnmodifiable() |
|
int |
binarySearch(int value) |
|
<V> MutableList<V> |
collect(IntToObjectFunction<? 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(IntIntToObjectFunction<? 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(IntIntToObjectFunction<? 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.
|
MutableIntList |
distinct() |
|
long |
dotProduct(IntList list) |
|
boolean |
equals(java.lang.Object otherList) |
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(IntIntProcedure procedure) |
|
int |
get(int index) |
|
int |
getFirst() |
|
int |
getLast() |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
indexOf(int value) |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(int value) |
|
MutableIntList |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
MutableIntList |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
int |
removeAtIndex(int index) |
|
MutableIntList |
reverseThis() |
|
MutableIntList |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
int |
set(int index,
int element) |
|
MutableIntList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
java.util.Spliterator.OfInt |
spliterator() |
This function needs to be synchronized manually
|
MutableIntList |
subList(int fromIndex,
int toIndex) |
|
ImmutableIntList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableIntList |
toReversed() |
|
SynchronizedIntList |
with(int element) |
|
SynchronizedIntList |
withAll(IntIterable elements) |
|
SynchronizedIntList |
without(int element) |
|
SynchronizedIntList |
withoutAll(IntIterable elements) |
|
<T> MutableList<IntObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns a
MutableList formed from this MutableIntList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<IntIntPair> |
zipInt(IntIterable iterable) |
Returns a
MutableList formed from this MutableIntList and another IntList 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, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, 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
primitiveParallelStream, primitiveStream
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedIntList(MutableIntList list)
public SynchronizedIntList(MutableIntList list, java.lang.Object newLock)
public int getFirst()
getFirst
in interface OrderedIntIterable
public int getLast()
getLast
in interface ReversibleIntIterable
public int indexOf(int value)
indexOf
in interface OrderedIntIterable
public int lastIndexOf(int value)
lastIndexOf
in interface IntList
public void addAtIndex(int index, int element)
addAtIndex
in interface MutableIntList
public boolean addAllAtIndex(int index, int... source)
addAllAtIndex
in interface MutableIntList
public boolean addAllAtIndex(int index, IntIterable source)
addAllAtIndex
in interface MutableIntList
public int removeAtIndex(int index)
removeAtIndex
in interface MutableIntList
public int set(int index, int element)
set
in interface MutableIntList
public SynchronizedIntList with(int element)
with
in interface MutableIntCollection
with
in interface MutableIntList
with
in class AbstractSynchronizedIntCollection
public SynchronizedIntList without(int element)
without
in interface MutableIntCollection
without
in interface MutableIntList
without
in class AbstractSynchronizedIntCollection
public SynchronizedIntList withAll(IntIterable elements)
withAll
in interface MutableIntCollection
withAll
in interface MutableIntList
withAll
in class AbstractSynchronizedIntCollection
public SynchronizedIntList withoutAll(IntIterable elements)
withoutAll
in interface MutableIntCollection
withoutAll
in interface MutableIntList
withoutAll
in class AbstractSynchronizedIntCollection
public MutableIntList select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface IntList
select
in interface MutableIntCollection
select
in interface MutableIntList
select
in interface OrderedIntIterable
select
in interface ReversibleIntIterable
select
in class AbstractSynchronizedIntCollection
public MutableIntList reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface IntList
reject
in interface MutableIntCollection
reject
in interface MutableIntList
reject
in interface OrderedIntIterable
reject
in interface ReversibleIntIterable
reject
in class AbstractSynchronizedIntCollection
public <V> MutableList<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface IntList
collect
in interface MutableIntCollection
collect
in interface MutableIntList
collect
in interface OrderedIntIterable
collect
in interface ReversibleIntIterable
collect
in class AbstractSynchronizedIntCollection
public MutableIntList sortThis()
MutableIntList
sortThis
in interface MutableIntList
public int binarySearch(int value)
binarySearch
in interface IntList
public long dotProduct(IntList list)
dotProduct
in interface IntList
public boolean equals(java.lang.Object otherList)
IntList
List.equals(Object)
.public int hashCode()
IntList
List.hashCode()
.public LazyIntIterable asLazy()
IntIterable
asLazy
in interface IntIterable
asLazy
in class AbstractSynchronizedIntCollection
public MutableIntList asUnmodifiable()
asUnmodifiable
in interface MutableIntCollection
asUnmodifiable
in interface MutableIntList
asUnmodifiable
in class AbstractSynchronizedIntCollection
public MutableIntList asSynchronized()
asSynchronized
in interface MutableIntCollection
asSynchronized
in interface MutableIntList
asSynchronized
in class AbstractSynchronizedIntCollection
public ImmutableIntList toImmutable()
MutableIntList
toImmutable
in interface IntList
toImmutable
in interface MutableIntCollection
toImmutable
in interface MutableIntList
toImmutable
in class AbstractSynchronizedIntCollection
public MutableIntList newEmpty()
MutableIntList
newEmpty
in interface MutableIntCollection
newEmpty
in interface MutableIntList
public MutableIntList reverseThis()
reverseThis
in interface MutableIntList
public MutableIntList toReversed()
toReversed
in interface IntList
toReversed
in interface MutableIntList
toReversed
in interface ReversibleIntIterable
public LazyIntIterable asReversed()
asReversed
in interface ReversibleIntIterable
public void forEachWithIndex(IntIntProcedure procedure)
forEachWithIndex
in interface OrderedIntIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedIntIterable
injectIntoWithIndex
in interface ReversibleIntIterable
public MutableIntList distinct()
distinct
in interface IntList
distinct
in interface MutableIntList
distinct
in interface ReversibleIntIterable
public MutableIntList subList(int fromIndex, int toIndex)
subList
in interface IntList
subList
in interface MutableIntList
List.subList(int fromIndex, int toIndex)
public MutableList<IntIntPair> zipInt(IntIterable iterable)
MutableIntList
MutableList
formed from this MutableIntList
and another IntList
by
combining corresponding elements in pairs. If one of the two IntList
s is longer than the other, its
remaining elements are ignored.zipInt
in interface IntList
zipInt
in interface MutableIntList
public <T> MutableList<IntObjectPair<T>> zip(java.lang.Iterable<T> iterable)
MutableIntList
MutableList
formed from this MutableIntList
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 IntList
zip
in interface MutableIntList
public <V> MutableList<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex
in interface IntList
collectWithIndex
in interface MutableIntList
collectWithIndex
in interface OrderedIntIterable
collectWithIndex
in interface ReversibleIntIterable
public <V,R extends java.util.Collection<V>> R collectWithIndex(IntIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedIntIterable
public java.util.Spliterator.OfInt spliterator()
spliterator
in interface IntList
Copyright © 2004–2020. All rights reserved.