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 Form| Constructor and Description |
|---|
SynchronizedIntList(MutableIntList list) |
SynchronizedIntList(MutableIntList list,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
int... source) |
boolean |
addAllAtIndex(int index,
IntIterable source) |
void |
addAtIndex(int index,
int element) |
LazyIntIterable |
asLazy() |
LazyIntIterable |
asReversed() |
MutableIntList |
asSynchronized() |
MutableIntList |
asUnmodifiable() |
int |
binarySearch(int value) |
<V> MutableList<V> |
collect(IntToObjectFunction<? extends V> function) |
<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 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(Object otherList) |
void |
forEachInBoth(IntList other,
IntIntProcedure procedure) |
void |
forEachWithIndex(IntIntProcedure procedure) |
int |
get(int index) |
int |
getFirst() |
int |
getLast() |
int |
hashCode() |
int |
indexOf(int value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(int value) |
MutableIntList |
newEmpty() |
MutableIntList |
reject(IntPredicate predicate) |
MutableIntList |
rejectWithIndex(IntIntPredicate predicate)
Returns a new MutableIntList excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableIntCollection> |
rejectWithIndex(IntIntPredicate predicate,
R target)
Returns a new MutableIntCollection excluding all elements with corresponding indexes matching the specified predicate.
|
int |
removeAtIndex(int index) |
MutableIntList |
reverseThis() |
MutableIntList |
select(IntPredicate predicate) |
MutableIntList |
selectWithIndex(IntIntPredicate predicate)
Returns a new MutableIntList including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableIntCollection> |
selectWithIndex(IntIntPredicate predicate,
R target)
Returns a new MutableIntCollection including all elements with corresponding indexes matching the specified predicate.
|
int |
set(int index,
int element) |
MutableIntList |
shuffleThis() |
MutableIntList |
shuffleThis(Random rnd) |
MutableIntList |
sortThis() |
MutableIntList |
sortThis(IntComparator comparator) |
<T> MutableIntList |
sortThisBy(IntToObjectFunction<T> function) |
<T> MutableIntList |
sortThisBy(IntToObjectFunction<T> function,
Comparator<? super T> comparator) |
Spliterator.OfInt |
spliterator()
This function needs to be synchronized manually
|
MutableIntList |
subList(int fromIndex,
int toIndex) |
ImmutableIntList |
toImmutable() |
MutableIntList |
toReversed() |
SynchronizedIntList |
with(int element) |
SynchronizedIntList |
withAll(IntIterable elements) |
SynchronizedIntList |
without(int element) |
SynchronizedIntList |
withoutAll(IntIterable elements) |
<T> MutableList<IntObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<IntIntPair> |
zipInt(IntIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringswap, tapadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllprimitiveParallelStream, primitiveStreamallSatisfy, 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 SynchronizedIntList(MutableIntList list)
public SynchronizedIntList(MutableIntList list, Object newLock)
public int getFirst()
getFirst in interface OrderedIntIterablepublic int getLast()
getLast in interface ReversibleIntIterablepublic int indexOf(int value)
indexOf in interface OrderedIntIterablepublic int lastIndexOf(int value)
lastIndexOf in interface IntListpublic void addAtIndex(int index,
int element)
addAtIndex in interface MutableIntListpublic boolean addAllAtIndex(int index,
int... source)
addAllAtIndex in interface MutableIntListpublic boolean addAllAtIndex(int index,
IntIterable source)
addAllAtIndex in interface MutableIntListpublic int removeAtIndex(int index)
removeAtIndex in interface MutableIntListpublic int set(int index,
int element)
set in interface MutableIntListpublic SynchronizedIntList with(int element)
with in interface MutableIntCollectionwith in interface MutableIntListwith in class AbstractSynchronizedIntCollectionpublic SynchronizedIntList without(int element)
without in interface MutableIntCollectionwithout in interface MutableIntListwithout in class AbstractSynchronizedIntCollectionpublic SynchronizedIntList withAll(IntIterable elements)
withAll in interface MutableIntCollectionwithAll in interface MutableIntListwithAll in class AbstractSynchronizedIntCollectionpublic SynchronizedIntList withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionwithoutAll in interface MutableIntListwithoutAll in class AbstractSynchronizedIntCollectionpublic MutableIntList select(IntPredicate predicate)
select in interface MutableIntCollectionselect in interface IntIterableselect in interface IntListselect in interface MutableIntListselect in interface OrderedIntIterableselect in interface ReversibleIntIterableselect in class AbstractSynchronizedIntCollectionpublic MutableIntList reject(IntPredicate predicate)
reject in interface MutableIntCollectionreject in interface IntIterablereject in interface IntListreject in interface MutableIntListreject in interface OrderedIntIterablereject in interface ReversibleIntIterablereject in class AbstractSynchronizedIntCollectionpublic <V> MutableList<V> collect(IntToObjectFunction<? extends V> function)
collect in interface MutableIntCollectioncollect in interface IntIterablecollect in interface IntListcollect in interface MutableIntListcollect in interface OrderedIntIterablecollect in interface ReversibleIntIterablecollect in class AbstractSynchronizedIntCollectionpublic MutableIntList sortThis()
sortThis in interface MutableIntListpublic MutableIntList sortThis(IntComparator comparator)
sortThis in interface MutableIntListpublic <T> MutableIntList sortThisBy(IntToObjectFunction<T> function)
sortThisBy in interface MutableIntListpublic <T> MutableIntList sortThisBy(IntToObjectFunction<T> function, Comparator<? super T> comparator)
sortThisBy in interface MutableIntListpublic MutableIntList shuffleThis()
shuffleThis in interface MutableIntListpublic MutableIntList shuffleThis(Random rnd)
shuffleThis in interface MutableIntListpublic int binarySearch(int value)
binarySearch in interface IntListpublic long dotProduct(IntList list)
dotProduct in interface IntListpublic boolean equals(Object otherList)
public int hashCode()
public LazyIntIterable asLazy()
asLazy in interface IntIterableasLazy in class AbstractSynchronizedIntCollectionpublic MutableIntList asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionasUnmodifiable in interface MutableIntListasUnmodifiable in class AbstractSynchronizedIntCollectionpublic MutableIntList asSynchronized()
asSynchronized in interface MutableIntCollectionasSynchronized in interface MutableIntListasSynchronized in class AbstractSynchronizedIntCollectionpublic ImmutableIntList toImmutable()
toImmutable in interface MutableIntCollectiontoImmutable in interface IntListtoImmutable in interface MutableIntListtoImmutable in class AbstractSynchronizedIntCollectionpublic MutableIntList newEmpty()
newEmpty in interface MutableIntCollectionnewEmpty in interface MutableIntListpublic MutableIntList reverseThis()
reverseThis in interface MutableIntListpublic MutableIntList toReversed()
toReversed in interface IntListtoReversed in interface MutableIntListtoReversed in interface ReversibleIntIterablepublic LazyIntIterable asReversed()
asReversed in interface ReversibleIntIterablepublic void forEachInBoth(IntList other, IntIntProcedure procedure)
forEachInBoth in interface IntListpublic void forEachWithIndex(IntIntProcedure procedure)
forEachWithIndex in interface OrderedIntIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedIntIterableinjectIntoWithIndex in interface ReversibleIntIterablepublic MutableIntList distinct()
distinct in interface IntListdistinct in interface MutableIntListdistinct in interface ReversibleIntIterablepublic MutableIntList subList(int fromIndex, int toIndex)
subList in interface IntListsubList in interface MutableIntListpublic MutableList<IntIntPair> zipInt(IntIterable iterable)
zipInt in interface IntListzipInt in interface MutableIntListpublic <T> MutableList<IntObjectPair<T>> zip(Iterable<T> iterable)
zip in interface IntListzip in interface MutableIntListpublic MutableIntList selectWithIndex(IntIntPredicate predicate)
selectWithIndex in interface IntListselectWithIndex in interface MutableIntListselectWithIndex in interface OrderedIntIterableselectWithIndex in interface ReversibleIntIterablepublic <R extends MutableIntCollection> R selectWithIndex(IntIntPredicate predicate, R target)
selectWithIndex in interface OrderedIntIterablepublic MutableIntList rejectWithIndex(IntIntPredicate predicate)
rejectWithIndex in interface IntListrejectWithIndex in interface MutableIntListrejectWithIndex in interface OrderedIntIterablerejectWithIndex in interface ReversibleIntIterablepublic <R extends MutableIntCollection> R rejectWithIndex(IntIntPredicate predicate, R target)
rejectWithIndex in interface OrderedIntIterablepublic <V> MutableList<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex in interface IntListcollectWithIndex in interface MutableIntListcollectWithIndex in interface OrderedIntIterablecollectWithIndex in interface ReversibleIntIterablepublic <V,R extends Collection<V>> R collectWithIndex(IntIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedIntIterablepublic Spliterator.OfInt spliterator()
spliterator in interface IntListCopyright © 2004–2022. All rights reserved.