@ThreadSafe public final class SynchronizedIntList extends AbstractSynchronizedIntCollection implements com.gs.collections.api.list.primitive.MutableIntList
MutableIntList. It is imperative that the user manually synchronize on the collection when iterating over it using the
IntIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableIntList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
int... source) |
boolean |
addAllAtIndex(int index,
com.gs.collections.api.IntIterable source) |
void |
addAtIndex(int index,
int element) |
com.gs.collections.api.LazyIntIterable |
asLazy() |
com.gs.collections.api.list.primitive.MutableIntList |
asSynchronized() |
com.gs.collections.api.list.primitive.MutableIntList |
asUnmodifiable() |
<V> com.gs.collections.api.list.MutableList<V> |
collect(com.gs.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
long |
dotProduct(com.gs.collections.api.list.primitive.IntList list) |
boolean |
equals(java.lang.Object otherList)
Follows the same general contract as
List.equals(Object). |
int |
get(int index) |
int |
getFirst() |
int |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
indexOf(int value) |
int |
lastIndexOf(int value) |
com.gs.collections.api.list.primitive.MutableIntList |
reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
removeAtIndex(int index) |
com.gs.collections.api.list.primitive.MutableIntList |
reverseThis() |
com.gs.collections.api.list.primitive.MutableIntList |
select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
set(int index,
int element) |
com.gs.collections.api.list.primitive.MutableIntList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
com.gs.collections.api.list.primitive.ImmutableIntList |
toImmutable()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableIntList |
toReversed() |
SynchronizedIntList |
with(int element) |
SynchronizedIntList |
withAll(com.gs.collections.api.IntIterable elements) |
SynchronizedIntList |
without(int element) |
SynchronizedIntList |
withoutAll(com.gs.collections.api.IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getIntCollection, getLock, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllpublic int get(int index)
get in interface com.gs.collections.api.list.primitive.IntListpublic int getFirst()
getFirst in interface com.gs.collections.api.list.primitive.IntListpublic int getLast()
getLast in interface com.gs.collections.api.list.primitive.IntListpublic int indexOf(int value)
indexOf in interface com.gs.collections.api.list.primitive.IntListpublic int lastIndexOf(int value)
lastIndexOf in interface com.gs.collections.api.list.primitive.IntListpublic void addAtIndex(int index,
int element)
addAtIndex in interface com.gs.collections.api.list.primitive.MutableIntListpublic boolean addAllAtIndex(int index,
int... source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableIntListpublic boolean addAllAtIndex(int index,
com.gs.collections.api.IntIterable source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableIntListpublic int removeAtIndex(int index)
removeAtIndex in interface com.gs.collections.api.list.primitive.MutableIntListpublic int set(int index,
int element)
set in interface com.gs.collections.api.list.primitive.MutableIntListpublic SynchronizedIntList with(int element)
with in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwith in interface com.gs.collections.api.list.primitive.MutableIntListwith in class AbstractSynchronizedIntCollectionpublic SynchronizedIntList without(int element)
without in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithout in interface com.gs.collections.api.list.primitive.MutableIntListwithout in class AbstractSynchronizedIntCollectionpublic SynchronizedIntList withAll(com.gs.collections.api.IntIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithAll in interface com.gs.collections.api.list.primitive.MutableIntListwithAll in class AbstractSynchronizedIntCollectionpublic SynchronizedIntList withoutAll(com.gs.collections.api.IntIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithoutAll in interface com.gs.collections.api.list.primitive.MutableIntListwithoutAll in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.list.primitive.MutableIntList select(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableIntCollectionselect in interface com.gs.collections.api.IntIterableselect in interface com.gs.collections.api.list.primitive.IntListselect in interface com.gs.collections.api.list.primitive.MutableIntListselect in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.list.primitive.MutableIntList reject(com.gs.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableIntCollectionreject in interface com.gs.collections.api.IntIterablereject in interface com.gs.collections.api.list.primitive.IntListreject in interface com.gs.collections.api.list.primitive.MutableIntListreject in class AbstractSynchronizedIntCollectionpublic <V> com.gs.collections.api.list.MutableList<V> collect(com.gs.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableIntCollectioncollect in interface com.gs.collections.api.IntIterablecollect in interface com.gs.collections.api.list.primitive.IntListcollect in interface com.gs.collections.api.list.primitive.MutableIntListcollect in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.list.primitive.MutableIntList sortThis()
com.gs.collections.api.list.primitive.MutableIntListsortThis in interface com.gs.collections.api.list.primitive.MutableIntListpublic long dotProduct(com.gs.collections.api.list.primitive.IntList list)
dotProduct in interface com.gs.collections.api.list.primitive.IntListpublic boolean equals(java.lang.Object otherList)
com.gs.collections.api.list.primitive.IntListList.equals(Object).equals in interface com.gs.collections.api.list.primitive.IntListequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.list.primitive.IntListList.hashCode().hashCode in interface com.gs.collections.api.list.primitive.IntListhashCode in class java.lang.Objectpublic com.gs.collections.api.LazyIntIterable asLazy()
asLazy in interface com.gs.collections.api.IntIterableasLazy in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.list.primitive.MutableIntList asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableIntCollectionasUnmodifiable in interface com.gs.collections.api.list.primitive.MutableIntListasUnmodifiable in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.list.primitive.MutableIntList asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableIntCollectionasSynchronized in interface com.gs.collections.api.list.primitive.MutableIntListasSynchronized in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.list.primitive.ImmutableIntList toImmutable()
com.gs.collections.api.list.primitive.MutableIntListtoImmutable in interface com.gs.collections.api.collection.primitive.MutableIntCollectiontoImmutable in interface com.gs.collections.api.list.primitive.IntListtoImmutable in interface com.gs.collections.api.list.primitive.MutableIntListtoImmutable in class AbstractSynchronizedIntCollectionpublic com.gs.collections.api.list.primitive.MutableIntList reverseThis()
reverseThis in interface com.gs.collections.api.list.primitive.MutableIntListpublic com.gs.collections.api.list.primitive.MutableIntList toReversed()
toReversed in interface com.gs.collections.api.list.primitive.MutableIntList