@NotThreadSafe public class IntArrayList extends AbstractIntIterable implements org.eclipse.collections.api.list.primitive.MutableIntList, Externalizable
FastList, and is memory-optimized for int primitives.
This file was automatically generated from template file primitiveArrayList.stg.| Constructor and Description |
|---|
IntArrayList() |
IntArrayList(int... array) |
IntArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int newItem) |
boolean |
addAll(int... source) |
boolean |
addAll(org.eclipse.collections.api.IntIterable source) |
boolean |
addAllAtIndex(int index,
int... source) |
boolean |
addAllAtIndex(int index,
org.eclipse.collections.api.IntIterable source) |
void |
addAtIndex(int index,
int element) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyIntIterable |
asReversed() |
org.eclipse.collections.api.list.primitive.MutableIntList |
asSynchronized() |
org.eclipse.collections.api.list.primitive.MutableIntList |
asUnmodifiable() |
int |
binarySearch(int value) |
void |
clear() |
<V> org.eclipse.collections.api.list.MutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
boolean |
contains(int value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone) |
org.eclipse.collections.api.list.primitive.MutableIntList |
distinct() |
long |
dotProduct(org.eclipse.collections.api.list.primitive.IntList list) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherList) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure procedure) |
int |
get(int index) |
int |
getFirst() |
int |
getLast() |
int |
hashCode() |
int |
indexOf(int value) |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntIntToObjectFunction<? super T,? extends T> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
int |
lastIndexOf(int value) |
int |
max() |
int |
min() |
static IntArrayList |
newList(org.eclipse.collections.api.IntIterable source) |
static IntArrayList |
newListWith(int... elements)
Creates a new list using the passed
elements argument as the backing store. |
static IntArrayList |
newWithNValues(int size,
int value) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
void |
readExternal(ObjectInput in) |
IntArrayList |
reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
remove(int value) |
boolean |
removeAll(int... source) |
boolean |
removeAll(org.eclipse.collections.api.IntIterable source) |
int |
removeAtIndex(int index) |
boolean |
retainAll(int... source) |
boolean |
retainAll(org.eclipse.collections.api.IntIterable source) |
IntArrayList |
reverseThis() |
IntArrayList |
select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
set(int index,
int element) |
int |
size() |
IntArrayList |
sortThis() |
org.eclipse.collections.api.list.primitive.MutableIntList |
subList(int fromIndex,
int toIndex) |
long |
sum() |
int[] |
toArray() |
org.eclipse.collections.api.list.primitive.ImmutableIntList |
toImmutable() |
IntArrayList |
toReversed() |
void |
trimToSize() |
IntArrayList |
with(int element) |
IntArrayList |
with(int element1,
int element2) |
IntArrayList |
with(int element1,
int element2,
int element3) |
IntArrayList |
with(int element1,
int element2,
int element3,
int... elements) |
IntArrayList |
withAll(org.eclipse.collections.api.IntIterable elements) |
IntArrayList |
without(int element) |
IntArrayList |
withoutAll(org.eclipse.collections.api.IntIterable elements) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic IntArrayList()
public IntArrayList(int initialCapacity)
public IntArrayList(int... array)
public static IntArrayList newListWith(int... elements)
elements argument as the backing store.
!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else. !!!
public static IntArrayList newList(org.eclipse.collections.api.IntIterable source)
public static IntArrayList newWithNValues(int size, int value)
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean contains(int value)
contains in interface org.eclipse.collections.api.IntIterablepublic int get(int index)
get in interface org.eclipse.collections.api.list.primitive.IntListpublic int getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterablepublic int getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic int indexOf(int value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterablepublic int lastIndexOf(int value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.IntListpublic void trimToSize()
public void ensureCapacity(int minCapacity)
public boolean add(int newItem)
add in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean addAll(int... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean addAll(org.eclipse.collections.api.IntIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic void addAtIndex(int index,
int element)
addAtIndex in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic boolean addAllAtIndex(int index,
int... source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic boolean addAllAtIndex(int index,
org.eclipse.collections.api.IntIterable source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic boolean remove(int value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean removeAll(org.eclipse.collections.api.IntIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean removeAll(int... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean retainAll(org.eclipse.collections.api.IntIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean retainAll(int... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic int removeAtIndex(int index)
removeAtIndex in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic int set(int index,
int element)
set in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic IntArrayList with(int element)
with in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwith in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic IntArrayList without(int element)
without in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithout in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic IntArrayList withAll(org.eclipse.collections.api.IntIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithAll in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic IntArrayList withoutAll(org.eclipse.collections.api.IntIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionwithoutAll in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic IntArrayList with(int element1, int element2)
public IntArrayList with(int element1, int element2, int element3)
public IntArrayList with(int element1, int element2, int element3, int... elements)
public org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionintIterator in interface org.eclipse.collections.api.IntIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEach in interface org.eclipse.collections.api.IntIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
each in interface org.eclipse.collections.api.IntIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic <T> T injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterableinjectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
count in interface org.eclipse.collections.api.IntIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.IntIterablepublic IntArrayList select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionselect in interface org.eclipse.collections.api.IntIterableselect in interface org.eclipse.collections.api.list.primitive.IntListselect in interface org.eclipse.collections.api.list.primitive.MutableIntListselect in interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic IntArrayList reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionreject in interface org.eclipse.collections.api.IntIterablereject in interface org.eclipse.collections.api.list.primitive.IntListreject in interface org.eclipse.collections.api.list.primitive.MutableIntListreject in interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic int detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone)
detectIfNone in interface org.eclipse.collections.api.IntIterablepublic <V> org.eclipse.collections.api.list.MutableList<V> collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectioncollect in interface org.eclipse.collections.api.IntIterablecollect in interface org.eclipse.collections.api.list.primitive.IntListcollect in interface org.eclipse.collections.api.list.primitive.MutableIntListcollect in interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic int max()
max in interface org.eclipse.collections.api.IntIterablepublic int min()
min in interface org.eclipse.collections.api.IntIterablepublic long sum()
sum in interface org.eclipse.collections.api.IntIterablepublic long dotProduct(org.eclipse.collections.api.list.primitive.IntList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.IntListpublic int[] toArray()
toArray in interface org.eclipse.collections.api.IntIterablepublic boolean equals(Object otherList)
public int hashCode()
public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.list.primitive.MutableIntList asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionasUnmodifiable in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic org.eclipse.collections.api.list.primitive.MutableIntList asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionasSynchronized in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic org.eclipse.collections.api.list.primitive.ImmutableIntList toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectiontoImmutable in interface org.eclipse.collections.api.list.primitive.IntListtoImmutable in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic org.eclipse.collections.api.LazyIntIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic IntArrayList reverseThis()
reverseThis in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic IntArrayList sortThis()
sortThis in interface org.eclipse.collections.api.list.primitive.MutableIntListpublic IntArrayList toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.IntListtoReversed in interface org.eclipse.collections.api.list.primitive.MutableIntListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic int binarySearch(int value)
binarySearch in interface org.eclipse.collections.api.list.primitive.IntListpublic org.eclipse.collections.api.list.primitive.MutableIntList distinct()
distinct in interface org.eclipse.collections.api.list.primitive.IntListdistinct in interface org.eclipse.collections.api.list.primitive.MutableIntListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterablepublic org.eclipse.collections.api.list.primitive.MutableIntList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.IntListsubList in interface org.eclipse.collections.api.list.primitive.MutableIntListCopyright © 2004–2017. All rights reserved.