@NotThreadSafe public final class UnmodifiableIntList extends AbstractUnmodifiableIntCollection implements MutableIntList
| 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() |
<V> MutableList<V> |
collect(IntToObjectFunction<? extends V> function) |
long |
dotProduct(IntList list) |
boolean |
equals(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 |
injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(int value) |
MutableIntList |
reject(IntPredicate predicate) |
int |
removeAtIndex(int index) |
MutableIntList |
reverseThis() |
MutableIntList |
select(IntPredicate predicate) |
int |
set(int index,
int element) |
MutableIntList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableIntList |
subList(int fromIndex,
int toIndex) |
ImmutableIntList |
toImmutable()
Returns an immutable copy of this list.
|
MutableIntList |
toReversed() |
UnmodifiableIntList |
with(int element) |
UnmodifiableIntList |
withAll(IntIterable elements) |
UnmodifiableIntList |
without(int element) |
UnmodifiableIntList |
withoutAll(IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, 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, toStringadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, forEach, intIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic int getFirst()
getFirst in interface ReversibleIntIterablepublic int getLast()
getLast in interface ReversibleIntIterablepublic int indexOf(int value)
indexOf in interface ReversibleIntIterablepublic 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 UnmodifiableIntList with(int element)
with in interface MutableIntCollectionwith in interface MutableIntListwith in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntList without(int element)
without in interface MutableIntCollectionwithout in interface MutableIntListwithout in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntList withAll(IntIterable elements)
withAll in interface MutableIntCollectionwithAll in interface MutableIntListwithAll in class AbstractUnmodifiableIntCollectionpublic UnmodifiableIntList withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionwithoutAll in interface MutableIntListwithoutAll in class AbstractUnmodifiableIntCollectionpublic MutableIntList select(IntPredicate predicate)
select in interface MutableIntCollectionselect in interface IntIterableselect in interface IntListselect in interface MutableIntListselect in interface ReversibleIntIterableselect in class AbstractUnmodifiableIntCollectionpublic MutableIntList reject(IntPredicate predicate)
reject in interface MutableIntCollectionreject in interface IntIterablereject in interface IntListreject in interface MutableIntListreject in interface ReversibleIntIterablereject in class AbstractUnmodifiableIntCollectionpublic <V> MutableList<V> collect(IntToObjectFunction<? extends V> function)
collect in interface MutableIntCollectioncollect in interface IntIterablecollect in interface IntListcollect in interface MutableIntListcollect in interface ReversibleIntIterablecollect in class AbstractUnmodifiableIntCollectionpublic MutableIntList sortThis()
MutableIntListsortThis in interface MutableIntListpublic long dotProduct(IntList list)
dotProduct in interface IntListpublic boolean equals(Object otherList)
IntListList.equals(Object).public int hashCode()
IntListList.hashCode().public LazyIntIterable asLazy()
asLazy in interface IntIterableasLazy in class AbstractUnmodifiableIntCollectionpublic MutableIntList asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionasUnmodifiable in interface MutableIntListasUnmodifiable in class AbstractUnmodifiableIntCollectionpublic MutableIntList asSynchronized()
asSynchronized in interface MutableIntCollectionasSynchronized in interface MutableIntListasSynchronized in class AbstractUnmodifiableIntCollectionpublic ImmutableIntList toImmutable()
MutableIntListtoImmutable in interface MutableIntCollectiontoImmutable in interface IntListtoImmutable in interface MutableIntListtoImmutable in class AbstractUnmodifiableIntCollectionpublic MutableIntList reverseThis()
reverseThis in interface MutableIntListpublic MutableIntList toReversed()
toReversed in interface IntListtoReversed in interface MutableIntListtoReversed in interface ReversibleIntIterablepublic void forEachWithIndex(IntIntProcedure procedure)
forEachWithIndex in interface ReversibleIntIterablepublic LazyIntIterable asReversed()
asReversed in interface ReversibleIntIterablepublic <T> T injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface IntIterableinjectInto in class AbstractUnmodifiableIntCollectionpublic <T> T injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface ReversibleIntIterablepublic MutableIntList subList(int fromIndex, int toIndex)
subList in interface IntListsubList in interface MutableIntListList#subList(int fromIndex, int toIndex)}Copyright © 2004–2017. All rights reserved.