Class UnmodifiableIntList
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection
org.eclipse.collections.impl.list.mutable.primitive.UnmodifiableIntList
- All Implemented Interfaces:
Serializable,MutableIntCollection,IntIterable,IntList,MutableIntList,OrderedIntIterable,ReversibleIntIterable,PrimitiveIterable
public class UnmodifiableIntList
extends AbstractUnmodifiableIntCollection
implements MutableIntList
This file was automatically generated from template file unmodifiablePrimitiveList.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllAtIndex(int index, int... source) booleanaddAllAtIndex(int index, IntIterable source) voidaddAtIndex(int index, int element) intbinarySearch(int value) boxed()<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>>
RcollectWithIndex(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.distinct()longdotProduct(IntList list) booleanvoidforEachWithIndex(IntIntProcedure procedure) intget(int index) intgetFirst()intgetLast()inthashCode()intindexOf(int value) <T> TinjectIntoWithIndex(T injectedValue, ObjectIntIntToObjectFunction<? super T, ? extends T> function) intlastIndexOf(int value) newEmpty()reject(IntPredicate predicate) rejectWithIndex(IntIntPredicate predicate) Returns a new MutableIntList excluding all elements with corresponding indexes matching the specified predicate.<R extends MutableIntCollection>
RrejectWithIndex(IntIntPredicate predicate, R target) Returns a new MutableIntCollection excluding all elements with corresponding indexes matching the specified predicate.intremoveAtIndex(int index) select(IntPredicate predicate) selectWithIndex(IntIntPredicate predicate) Returns a new MutableIntList including all elements with corresponding indexes matching the specified predicate.<R extends MutableIntCollection>
RselectWithIndex(IntIntPredicate predicate, R target) Returns a new MutableIntCollection including all elements with corresponding indexes matching the specified predicate.intset(int index, int element) sortThis()subList(int fromIndex, int toIndex) toStack()with(int element) withAll(IntIterable elements) without(int element) withoutAll(IntIterable elements) <T> MutableList<IntObjectPair<T>>zipInt(IntIterable iterable) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, 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, toStringMethods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, anySatisfy, asLazy, 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.list.primitive.IntList
forEachInBoth, primitiveParallelStream, primitiveStreamMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableIntCollection
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.list.primitive.MutableIntList
shuffleThis, sortThis, sortThisBy, sortThisBy, swap, tapMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
UnmodifiableIntList
-
-
Method Details
-
get
public int get(int index) -
getFirst
public int getFirst()- Specified by:
getFirstin interfaceOrderedIntIterable
-
getLast
public int getLast()- Specified by:
getLastin interfaceReversibleIntIterable
-
indexOf
public int indexOf(int value) - Specified by:
indexOfin interfaceOrderedIntIterable
-
lastIndexOf
public int lastIndexOf(int value) - Specified by:
lastIndexOfin interfaceIntList
-
boxed
- Specified by:
boxedin interfaceMutableIntList
-
addAtIndex
public void addAtIndex(int index, int element) - Specified by:
addAtIndexin interfaceMutableIntList
-
addAllAtIndex
public boolean addAllAtIndex(int index, int... source) - Specified by:
addAllAtIndexin interfaceMutableIntList
-
addAllAtIndex
- Specified by:
addAllAtIndexin interfaceMutableIntList
-
removeAtIndex
public int removeAtIndex(int index) - Specified by:
removeAtIndexin interfaceMutableIntList
-
set
public int set(int index, int element) - Specified by:
setin interfaceMutableIntList
-
with
- Specified by:
within interfaceMutableIntCollection- Specified by:
within interfaceMutableIntList- Overrides:
within classAbstractUnmodifiableIntCollection
-
without
- Specified by:
withoutin interfaceMutableIntCollection- Specified by:
withoutin interfaceMutableIntList- Overrides:
withoutin classAbstractUnmodifiableIntCollection
-
withAll
- Specified by:
withAllin interfaceMutableIntCollection- Specified by:
withAllin interfaceMutableIntList- Overrides:
withAllin classAbstractUnmodifiableIntCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableIntCollection- Specified by:
withoutAllin interfaceMutableIntList- Overrides:
withoutAllin classAbstractUnmodifiableIntCollection
-
select
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntList- Specified by:
selectin interfaceMutableIntCollection- Specified by:
selectin interfaceMutableIntList- Specified by:
selectin interfaceOrderedIntIterable- Specified by:
selectin interfaceReversibleIntIterable- Overrides:
selectin classAbstractUnmodifiableIntCollection
-
reject
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntList- Specified by:
rejectin interfaceMutableIntCollection- Specified by:
rejectin interfaceMutableIntList- Specified by:
rejectin interfaceOrderedIntIterable- Specified by:
rejectin interfaceReversibleIntIterable- Overrides:
rejectin classAbstractUnmodifiableIntCollection
-
collect
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntList- Specified by:
collectin interfaceMutableIntCollection- Specified by:
collectin interfaceMutableIntList- Specified by:
collectin interfaceOrderedIntIterable- Specified by:
collectin interfaceReversibleIntIterable- Overrides:
collectin classAbstractUnmodifiableIntCollection
-
sortThis
- Specified by:
sortThisin interfaceMutableIntList
-
shuffleThis
- Specified by:
shuffleThisin interfaceMutableIntList
-
binarySearch
public int binarySearch(int value) - Specified by:
binarySearchin interfaceIntList
-
dotProduct
- Specified by:
dotProductin interfaceIntList
-
equals
-
hashCode
public int hashCode() -
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntCollection- Specified by:
asUnmodifiablein interfaceMutableIntList- Overrides:
asUnmodifiablein classAbstractUnmodifiableIntCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntCollection- Specified by:
asSynchronizedin interfaceMutableIntList- Overrides:
asSynchronizedin classAbstractUnmodifiableIntCollection
-
toImmutable
- Specified by:
toImmutablein interfaceIntList- Specified by:
toImmutablein interfaceMutableIntCollection- Specified by:
toImmutablein interfaceMutableIntList- Overrides:
toImmutablein classAbstractUnmodifiableIntCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableIntCollection- Specified by:
newEmptyin interfaceMutableIntList- Since:
- 9.2.
-
reverseThis
- Specified by:
reverseThisin interfaceMutableIntList
-
toReversed
- Specified by:
toReversedin interfaceIntList- Specified by:
toReversedin interfaceMutableIntList- Specified by:
toReversedin interfaceReversibleIntIterable
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceOrderedIntIterable
-
asReversed
- Specified by:
asReversedin interfaceReversibleIntIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectIntIntToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoWithIndexin interfaceOrderedIntIterable- Specified by:
injectIntoWithIndexin interfaceReversibleIntIterable
-
distinct
- Specified by:
distinctin interfaceIntList- Specified by:
distinctin interfaceMutableIntList- Specified by:
distinctin interfaceReversibleIntIterable- Since:
- 6.0.
-
subList
- Specified by:
subListin interfaceIntList- Specified by:
subListin interfaceMutableIntList
-
zipInt
- Specified by:
zipIntin interfaceIntList- Specified by:
zipIntin interfaceMutableIntList- Since:
- 9.1.
-
zip
- Specified by:
zipin interfaceIntList- Specified by:
zipin interfaceMutableIntList- Since:
- 9.1.
-
selectWithIndex
Returns a new MutableIntList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceIntList- Specified by:
selectWithIndexin interfaceMutableIntList- Specified by:
selectWithIndexin interfaceOrderedIntIterable- Specified by:
selectWithIndexin interfaceReversibleIntIterable- Since:
- 11.1.
-
selectWithIndex
Returns a new MutableIntCollection including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedIntIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableIntList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceIntList- Specified by:
rejectWithIndexin interfaceMutableIntList- Specified by:
rejectWithIndexin interfaceOrderedIntIterable- Specified by:
rejectWithIndexin interfaceReversibleIntIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableIntCollection excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedIntIterable- Since:
- 11.1.
-
collectWithIndex
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceIntList- Specified by:
collectWithIndexin interfaceMutableIntList- Specified by:
collectWithIndexin interfaceOrderedIntIterable- Specified by:
collectWithIndexin interfaceReversibleIntIterable- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R 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.- Specified by:
collectWithIndexin interfaceOrderedIntIterable- Since:
- 9.1.
-
toStack
- Specified by:
toStackin interfaceOrderedIntIterable
-
spliterator
- Specified by:
spliteratorin interfaceIntList
-