@NotThreadSafe public class LongArrayList extends AbstractLongIterable implements org.eclipse.collections.api.list.primitive.MutableLongList, Externalizable
FastList, and is memory-optimized for long primitives.
This file was automatically generated from template file primitiveArrayList.stg.| Constructor and Description |
|---|
LongArrayList() |
LongArrayList(int initialCapacity) |
LongArrayList(long... array) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long newItem) |
boolean |
addAll(long... source) |
boolean |
addAll(org.eclipse.collections.api.LongIterable source) |
boolean |
addAllAtIndex(int index,
long... source) |
boolean |
addAllAtIndex(int index,
org.eclipse.collections.api.LongIterable source) |
void |
addAtIndex(int index,
long element) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyLongIterable |
asReversed() |
org.eclipse.collections.api.list.primitive.MutableLongList |
asSynchronized() |
org.eclipse.collections.api.list.primitive.MutableLongList |
asUnmodifiable() |
int |
binarySearch(long value) |
void |
clear() |
<V> org.eclipse.collections.api.list.MutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
contains(long value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone) |
org.eclipse.collections.api.list.primitive.MutableLongList |
distinct() |
long |
dotProduct(org.eclipse.collections.api.list.primitive.LongList list) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherList) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure) |
long |
get(int index) |
long |
getFirst() |
long |
getLast() |
int |
hashCode() |
int |
indexOf(long value) |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(long value) |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator() |
long |
max() |
long |
min() |
static LongArrayList |
newList(org.eclipse.collections.api.LongIterable source) |
static LongArrayList |
newListWith(long... elements)
Creates a new list using the passed
elements argument as the backing store. |
static LongArrayList |
newWithNValues(int size,
long value) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
readExternal(ObjectInput in) |
LongArrayList |
reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
remove(long value) |
boolean |
removeAll(long... source) |
boolean |
removeAll(org.eclipse.collections.api.LongIterable source) |
long |
removeAtIndex(int index) |
boolean |
retainAll(long... source) |
boolean |
retainAll(org.eclipse.collections.api.LongIterable source) |
LongArrayList |
reverseThis() |
LongArrayList |
select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
set(int index,
long element) |
int |
size() |
LongArrayList |
sortThis() |
org.eclipse.collections.api.list.primitive.MutableLongList |
subList(int fromIndex,
int toIndex) |
long |
sum() |
long[] |
toArray() |
org.eclipse.collections.api.list.primitive.ImmutableLongList |
toImmutable() |
LongArrayList |
toReversed() |
void |
trimToSize() |
LongArrayList |
with(long element) |
LongArrayList |
with(long element1,
long element2) |
LongArrayList |
with(long element1,
long element2,
long element3) |
LongArrayList |
with(long element1,
long element2,
long element3,
long... elements) |
LongArrayList |
withAll(org.eclipse.collections.api.LongIterable elements) |
LongArrayList |
without(long element) |
LongArrayList |
withoutAll(org.eclipse.collections.api.LongIterable 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 LongArrayList()
public LongArrayList(int initialCapacity)
public LongArrayList(long... array)
public static LongArrayList newListWith(long... 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 LongArrayList newList(org.eclipse.collections.api.LongIterable source)
public static LongArrayList newWithNValues(int size, long value)
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean contains(long value)
contains in interface org.eclipse.collections.api.LongIterablepublic long get(int index)
get in interface org.eclipse.collections.api.list.primitive.LongListpublic long getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablepublic long getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic int indexOf(long value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablepublic int lastIndexOf(long value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.LongListpublic void trimToSize()
public void ensureCapacity(int minCapacity)
public boolean add(long newItem)
add in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean addAll(long... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean addAll(org.eclipse.collections.api.LongIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic void addAtIndex(int index,
long element)
addAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
long... source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
org.eclipse.collections.api.LongIterable source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic boolean remove(long value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean removeAll(org.eclipse.collections.api.LongIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean removeAll(long... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean retainAll(org.eclipse.collections.api.LongIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean retainAll(long... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic long removeAtIndex(int index)
removeAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic long set(int index,
long element)
set in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic LongArrayList with(long element)
with in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwith in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic LongArrayList without(long element)
without in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithout in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic LongArrayList withAll(org.eclipse.collections.api.LongIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithAll in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic LongArrayList withoutAll(org.eclipse.collections.api.LongIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithoutAll in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic LongArrayList with(long element1, long element2)
public LongArrayList with(long element1, long element2, long element3)
public LongArrayList with(long element1, long element2, long element3, long... elements)
public org.eclipse.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionlongIterator in interface org.eclipse.collections.api.LongIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
forEach in interface org.eclipse.collections.api.LongIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
each in interface org.eclipse.collections.api.LongIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.LongIterablepublic <T> T injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterableinjectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
count in interface org.eclipse.collections.api.LongIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.LongIterablepublic LongArrayList select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionselect in interface org.eclipse.collections.api.list.primitive.LongListselect in interface org.eclipse.collections.api.list.primitive.MutableLongListselect in interface org.eclipse.collections.api.LongIterableselect in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic LongArrayList reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionreject in interface org.eclipse.collections.api.list.primitive.LongListreject in interface org.eclipse.collections.api.list.primitive.MutableLongListreject in interface org.eclipse.collections.api.LongIterablereject in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic long detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone)
detectIfNone in interface org.eclipse.collections.api.LongIterablepublic <V> org.eclipse.collections.api.list.MutableList<V> collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectioncollect in interface org.eclipse.collections.api.list.primitive.LongListcollect in interface org.eclipse.collections.api.list.primitive.MutableLongListcollect in interface org.eclipse.collections.api.LongIterablecollect in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic long max()
max in interface org.eclipse.collections.api.LongIterablepublic long min()
min in interface org.eclipse.collections.api.LongIterablepublic long sum()
sum in interface org.eclipse.collections.api.LongIterablepublic long dotProduct(org.eclipse.collections.api.list.primitive.LongList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.LongListpublic long[] toArray()
toArray in interface org.eclipse.collections.api.LongIterablepublic 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.MutableLongList asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic org.eclipse.collections.api.list.primitive.MutableLongList asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasSynchronized in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic org.eclipse.collections.api.list.primitive.ImmutableLongList toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectiontoImmutable in interface org.eclipse.collections.api.list.primitive.LongListtoImmutable in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic org.eclipse.collections.api.LazyLongIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic LongArrayList reverseThis()
reverseThis in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic LongArrayList sortThis()
sortThis in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic LongArrayList toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.LongListtoReversed in interface org.eclipse.collections.api.list.primitive.MutableLongListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic int binarySearch(long value)
binarySearch in interface org.eclipse.collections.api.list.primitive.LongListpublic org.eclipse.collections.api.list.primitive.MutableLongList distinct()
distinct in interface org.eclipse.collections.api.list.primitive.LongListdistinct in interface org.eclipse.collections.api.list.primitive.MutableLongListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic org.eclipse.collections.api.list.primitive.MutableLongList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.LongListsubList in interface org.eclipse.collections.api.list.primitive.MutableLongListCopyright © 2004–2017. All rights reserved.