Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.list.immutable.primitive

pack-priv final Class ImmutableIntArrayList

extends Object
implements ImmutableIntList, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.eclipse.collections.api.list.primitive.ImmutableIntList, org.eclipse.collections.api.list.primitive.IntList, org.eclipse.collections.api.ordered.primitive.ReversibleIntIterable, org.eclipse.collections.api.ordered.primitive.OrderedIntIterable, org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.ImmutableIntCollection
Imports
java.io.IOException, .Serializable, java.util.Arrays, .Collection, .Iterator, .NoSuchElementException, .Spliterator, .Spliterators, org.eclipse.collections.api.IntIterable, .LazyIntIterable, .RichIterable, org.eclipse.collections.api.bag.primitive.MutableIntBag, org.eclipse.collections.api.block.function.primitive.IntToObjectFunction, .ObjectIntToObjectFunction, .ObjectIntIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, .IntIntProcedure, org.eclipse.collections.api.collection.primitive.MutableIntCollection, org.eclipse.collections.api.factory.Lists, org.eclipse.collections.api.iterator.IntIterator, org.eclipse.collections.api.list.ImmutableList, .MutableList, org.eclipse.collections.api.list.primitive.ImmutableIntList, .IntList, .MutableIntList, org.eclipse.collections.api.set.primitive.MutableIntSet, org.eclipse.collections.api.stack.primitive.MutableIntStack, org.eclipse.collections.api.tuple.primitive.IntIntPair, .IntObjectPair, org.eclipse.collections.impl.bag.mutable.primitive.IntHashBag, org.eclipse.collections.impl.factory.primitive.IntLists, .IntStacks, org.eclipse.collections.impl.lazy.primitive.LazyIntIterableAdapter, .ReverseIntIterable, org.eclipse.collections.impl.list.mutable.primitive.IntArrayList, org.eclipse.collections.impl.set.mutable.primitive.IntHashSet, org.eclipse.collections.impl.tuple.primitive.PrimitiveTuples, org.eclipse.collections.impl.utility.Iterate

ImmutableIntArrayList is the non-modifiable equivalent of IntArrayList. It wraps a Java int array. This file was automatically generated from template file immutablePrimitiveArrayList.stg.
Since
3.2.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final int[]
private static final long

Constructor Summary

AccessConstructor and Description
private
ImmutableIntArrayList(int[] newElements)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.allSatisfy.

Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.anySatisfy.

Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

public void
appendString(Appendable appendable)

Overrides default org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String separator)

Overrides default org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public LazyIntIterable
asLazy()

Implements org.eclipse.collections.api.IntIterable.asLazy.

Returns a LazyIntIterable adapter wrapping the source IntIterable.

public LazyIntIterable
public double
public int
public RichIterable<IntIterable>
chunk(int size)

Overrides default org.eclipse.collections.api.IntIterable.chunk.

Partitions elements in fixed size chunks.

public <V> ImmutableList<V>
collect(IntToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.list.primitive.ImmutableIntList.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public <V, R extends Collection<V>> R
collect(IntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.IntIterable.collect.

Same as collect(IntToObjectFunction) , only the results are added to the target Collection.

public boolean
contains(int value)

Implements org.eclipse.collections.api.IntIterable.contains.

Returns true if the value is contained in the IntIterable, and false if it is not.

public boolean
containsAll(int... source)

Overrides default org.eclipse.collections.api.IntIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.

public boolean
containsAll(IntIterable source)

Overrides default org.eclipse.collections.api.IntIterable.containsAll.

Returns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.

public int
count(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.count.

Returns a count of the number of elements in the IntIterable that return true for the specified predicate.

public int
public ImmutableIntList
public long
public void
each(IntProcedure procedure)

Implements org.eclipse.collections.api.IntIterable.each.

A synonym for forEach.

public boolean
public void
public int
public int
public int
public int
public int
public <T> T
injectInto(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.IntIterable.injectInto.

public <T> T
public IntIterator
intIterator()

Implements org.eclipse.collections.api.IntIterable.intIterator.

Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.

public boolean
isEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

public int
public String
makeString()

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

public String
makeString(String separator)

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

public String
makeString(String start, String separator, String end)

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

public int
public int
public double
public int
public int
public static ImmutableIntArrayList
newList(IntIterable iterable)

public static ImmutableIntArrayList
newListWith(int... elements)

public ImmutableIntList
public ImmutableIntList
public ImmutableIntList
public ImmutableIntList
public boolean
notEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

public ImmutableIntList
reject(IntPredicate predicate)

Implements org.eclipse.collections.api.list.primitive.ImmutableIntList.reject.

Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.

public <R extends MutableIntCollection> R
reject(IntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.IntIterable.reject.

Same as reject(IntPredicate) , only the results are added to the target MutableIntCollection.

public ImmutableIntList
select(IntPredicate predicate)

Implements org.eclipse.collections.api.list.primitive.ImmutableIntList.select.

Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.

public <R extends MutableIntCollection> R
select(IntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.IntIterable.select.

Same as select(IntPredicate) , only the results are added to the target MutableIntCollection.

public int
size()

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

public Spliterator.OfInt
public ImmutableIntList
public long
public int[]
toArray()

Implements org.eclipse.collections.api.IntIterable.toArray.

Converts the IntIterable to a primitive int array.

public int[]
toArray(int[] target)

Overrides default org.eclipse.collections.api.IntIterable.toArray.

Converts the IntIterable to a primitive int array.

public MutableIntBag
toBag()

Implements org.eclipse.collections.api.IntIterable.toBag.

Converts the IntIterable to a new MutableIntBag.

public ImmutableIntList
toImmutable()

Implements org.eclipse.collections.api.list.primitive.IntList.toImmutable.

Returns an immutable copy of this list.

public MutableIntList
toList()

Implements org.eclipse.collections.api.IntIterable.toList.

Converts the IntIterable to a new MutableIntList.

public ImmutableIntArrayList
public MutableIntSet
toSet()

Implements org.eclipse.collections.api.IntIterable.toSet.

Converts the IntIterable to a new MutableIntSet.

public int[]
public MutableIntList
public MutableIntStack
toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedIntIterable.toStack.

Converts the collection to a IntStack.

public String
toString()

Overrides java.lang.Object.toString.

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

public <T> ImmutableList<IntObjectPair<T>>
zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.ImmutableIntList.zip.

Returns an ImmutableList formed from this ImmutableIntList and a ListIterable by combining corresponding elements in pairs.

public ImmutableList<IntIntPair>
zipInt(IntIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.ImmutableIntList.zipInt.

Returns an ImmutableList formed from this ImmutableIntList and another IntList by combining corresponding elements in pairs.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait