@NotThreadSafe public final class UnmodifiableIntList extends AbstractUnmodifiableIntCollection implements com.gs.collections.api.list.primitive.MutableIntList
| 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.LazyIntIterable |
asReversed() |
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). |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.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 |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectIntIntToObjectFunction<? super T,? extends T> function) |
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.MutableIntList |
subList(int fromIndex,
int toIndex) |
com.gs.collections.api.list.primitive.ImmutableIntList |
toImmutable()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableIntList |
toReversed() |
UnmodifiableIntList |
with(int element) |
UnmodifiableIntList |
withAll(com.gs.collections.api.IntIterable elements) |
UnmodifiableIntList |
without(int element) |
UnmodifiableIntList |
withoutAll(com.gs.collections.api.IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getIntCollection, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAllpublic int get(int index)
get in interface com.gs.collections.api.list.primitive.IntListpublic int getFirst()
getFirst in interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablepublic int getLast()
getLast in interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablepublic int indexOf(int value)
indexOf in interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablepublic 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 UnmodifiableIntList with(int element)
with in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwith in interface com.gs.collections.api.list.primitive.MutableIntListwith in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntList without(int element)
without in interface com.gs.collections.api.collection.primitive.MutableIntCollectionwithout in interface com.gs.collections.api.list.primitive.MutableIntListwithout in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntList 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 AbstractUnmodifiableIntCollectionpublic UnmodifiableIntList 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 AbstractUnmodifiableIntCollectionpublic 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 interface com.gs.collections.api.ordered.primitive.ReversibleIntIterableselect in class AbstractUnmodifiableIntCollectionpublic 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 interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablereject in class AbstractUnmodifiableIntCollectionpublic <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 interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablecollect in class AbstractUnmodifiableIntCollectionpublic 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 AbstractUnmodifiableIntCollectionpublic 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 AbstractUnmodifiableIntCollectionpublic 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 AbstractUnmodifiableIntCollectionpublic 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 AbstractUnmodifiableIntCollectionpublic 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.IntListtoReversed in interface com.gs.collections.api.list.primitive.MutableIntListtoReversed in interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablepublic void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.IntIntProcedure procedure)
forEachWithIndex in interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablepublic com.gs.collections.api.LazyIntIterable asReversed()
asReversed in interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablepublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.IntIterableinjectInto in class AbstractUnmodifiableIntCollectionpublic <T> T injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.ReversibleIntIterablepublic com.gs.collections.api.list.primitive.MutableIntList subList(int fromIndex,
int toIndex)
subList in interface com.gs.collections.api.list.primitive.IntListsubList in interface com.gs.collections.api.list.primitive.MutableIntListList#subList(int fromIndex, int toIndex)}