@NotThreadSafe public class DoubleArrayList extends AbstractDoubleIterable implements org.eclipse.collections.api.list.primitive.MutableDoubleList, Externalizable
FastList, and is memory-optimized for double primitives.
This file was automatically generated from template file primitiveArrayList.stg.| Constructor and Description |
|---|
DoubleArrayList() |
DoubleArrayList(double... array) |
DoubleArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double newItem) |
boolean |
addAll(double... source) |
boolean |
addAll(org.eclipse.collections.api.DoubleIterable source) |
boolean |
addAllAtIndex(int index,
double... source) |
boolean |
addAllAtIndex(int index,
org.eclipse.collections.api.DoubleIterable source) |
void |
addAtIndex(int index,
double element) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyDoubleIterable |
asReversed() |
org.eclipse.collections.api.list.primitive.MutableDoubleList |
asSynchronized() |
org.eclipse.collections.api.list.primitive.MutableDoubleList |
asUnmodifiable() |
int |
binarySearch(double value) |
void |
clear() |
<V> org.eclipse.collections.api.list.MutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
boolean |
contains(double value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone) |
org.eclipse.collections.api.list.primitive.MutableDoubleList |
distinct() |
double |
dotProduct(org.eclipse.collections.api.list.primitive.DoubleList list) |
org.eclipse.collections.api.iterator.MutableDoubleIterator |
doubleIterator() |
void |
each(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherList) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure) |
double |
get(int index) |
double |
getFirst() |
double |
getLast() |
int |
hashCode() |
int |
indexOf(double value) |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(double value) |
double |
max() |
double |
min() |
static DoubleArrayList |
newList(org.eclipse.collections.api.DoubleIterable source) |
static DoubleArrayList |
newListWith(double... elements)
Creates a new list using the passed
elements argument as the backing store. |
static DoubleArrayList |
newWithNValues(int size,
double value) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
void |
readExternal(ObjectInput in) |
DoubleArrayList |
reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
boolean |
remove(double value) |
boolean |
removeAll(double... source) |
boolean |
removeAll(org.eclipse.collections.api.DoubleIterable source) |
double |
removeAtIndex(int index) |
boolean |
retainAll(double... source) |
boolean |
retainAll(org.eclipse.collections.api.DoubleIterable source) |
DoubleArrayList |
reverseThis() |
DoubleArrayList |
select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
set(int index,
double element) |
int |
size() |
DoubleArrayList |
sortThis() |
org.eclipse.collections.api.list.primitive.MutableDoubleList |
subList(int fromIndex,
int toIndex) |
double |
sum() |
double[] |
toArray() |
org.eclipse.collections.api.list.primitive.ImmutableDoubleList |
toImmutable() |
DoubleArrayList |
toReversed() |
void |
trimToSize() |
DoubleArrayList |
with(double element) |
DoubleArrayList |
with(double element1,
double element2) |
DoubleArrayList |
with(double element1,
double element2,
double element3) |
DoubleArrayList |
with(double element1,
double element2,
double element3,
double... elements) |
DoubleArrayList |
withAll(org.eclipse.collections.api.DoubleIterable elements) |
DoubleArrayList |
without(double element) |
DoubleArrayList |
withoutAll(org.eclipse.collections.api.DoubleIterable 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 DoubleArrayList()
public DoubleArrayList(int initialCapacity)
public DoubleArrayList(double... array)
public static DoubleArrayList newListWith(double... 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 DoubleArrayList newList(org.eclipse.collections.api.DoubleIterable source)
public static DoubleArrayList newWithNValues(int size, double value)
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean contains(double value)
contains in interface org.eclipse.collections.api.DoubleIterablepublic double get(int index)
get in interface org.eclipse.collections.api.list.primitive.DoubleListpublic double getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterablepublic double getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic int indexOf(double value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterablepublic int lastIndexOf(double value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.DoubleListpublic void trimToSize()
public void ensureCapacity(int minCapacity)
public boolean add(double newItem)
add in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean addAll(double... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean addAll(org.eclipse.collections.api.DoubleIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic void addAtIndex(int index,
double element)
addAtIndex in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic boolean addAllAtIndex(int index,
double... source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic boolean addAllAtIndex(int index,
org.eclipse.collections.api.DoubleIterable source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic boolean remove(double value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean removeAll(org.eclipse.collections.api.DoubleIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean removeAll(double... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean retainAll(org.eclipse.collections.api.DoubleIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic boolean retainAll(double... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionpublic double removeAtIndex(int index)
removeAtIndex in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic double set(int index,
double element)
set in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic DoubleArrayList with(double element)
with in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwith in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic DoubleArrayList without(double element)
without in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithout in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic DoubleArrayList withAll(org.eclipse.collections.api.DoubleIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithAll in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic DoubleArrayList withoutAll(org.eclipse.collections.api.DoubleIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionwithoutAll in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic DoubleArrayList with(double element1, double element2)
public DoubleArrayList with(double element1, double element2, double element3)
public DoubleArrayList with(double element1, double element2, double element3, double... elements)
public org.eclipse.collections.api.iterator.MutableDoubleIterator doubleIterator()
doubleIterator in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectiondoubleIterator in interface org.eclipse.collections.api.DoubleIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
forEach in interface org.eclipse.collections.api.DoubleIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure procedure)
each in interface org.eclipse.collections.api.DoubleIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.DoubleIterablepublic <T> T injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectDoubleIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterableinjectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
count in interface org.eclipse.collections.api.DoubleIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
anySatisfy in interface org.eclipse.collections.api.DoubleIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
allSatisfy in interface org.eclipse.collections.api.DoubleIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.DoubleIterablepublic DoubleArrayList select(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionselect in interface org.eclipse.collections.api.DoubleIterableselect in interface org.eclipse.collections.api.list.primitive.DoubleListselect in interface org.eclipse.collections.api.list.primitive.MutableDoubleListselect in interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic DoubleArrayList reject(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionreject in interface org.eclipse.collections.api.DoubleIterablereject in interface org.eclipse.collections.api.list.primitive.DoubleListreject in interface org.eclipse.collections.api.list.primitive.MutableDoubleListreject in interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic double detectIfNone(org.eclipse.collections.api.block.predicate.primitive.DoublePredicate predicate,
double ifNone)
detectIfNone in interface org.eclipse.collections.api.DoubleIterablepublic <V> org.eclipse.collections.api.list.MutableList<V> collect(org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface org.eclipse.collections.api.DoubleIterablecollect in interface org.eclipse.collections.api.list.primitive.DoubleListcollect in interface org.eclipse.collections.api.list.primitive.MutableDoubleListcollect in interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic double max()
max in interface org.eclipse.collections.api.DoubleIterablepublic double min()
min in interface org.eclipse.collections.api.DoubleIterablepublic double sum()
sum in interface org.eclipse.collections.api.DoubleIterablepublic double dotProduct(org.eclipse.collections.api.list.primitive.DoubleList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.DoubleListpublic double[] toArray()
toArray in interface org.eclipse.collections.api.DoubleIterablepublic 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.MutableDoubleList asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionasUnmodifiable in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic org.eclipse.collections.api.list.primitive.MutableDoubleList asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectionasSynchronized in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic org.eclipse.collections.api.list.primitive.ImmutableDoubleList toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollectiontoImmutable in interface org.eclipse.collections.api.list.primitive.DoubleListtoImmutable in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic org.eclipse.collections.api.LazyDoubleIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic DoubleArrayList reverseThis()
reverseThis in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic DoubleArrayList sortThis()
sortThis in interface org.eclipse.collections.api.list.primitive.MutableDoubleListpublic DoubleArrayList toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.DoubleListtoReversed in interface org.eclipse.collections.api.list.primitive.MutableDoubleListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic int binarySearch(double value)
binarySearch in interface org.eclipse.collections.api.list.primitive.DoubleListpublic org.eclipse.collections.api.list.primitive.MutableDoubleList distinct()
distinct in interface org.eclipse.collections.api.list.primitive.DoubleListdistinct in interface org.eclipse.collections.api.list.primitive.MutableDoubleListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterablepublic org.eclipse.collections.api.list.primitive.MutableDoubleList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.DoubleListsubList in interface org.eclipse.collections.api.list.primitive.MutableDoubleListCopyright © 2004–2018. All rights reserved.