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

pack-priv final Class ImmutableDoubleArrayList

extends Object
implements ImmutableDoubleList, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.eclipse.collections.api.list.primitive.ImmutableDoubleList, org.eclipse.collections.api.list.primitive.DoubleList, org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable, org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection
Imports
java.io.IOException, .Serializable, java.util.Arrays, .Collection, .Iterator, .NoSuchElementException, .Spliterator, .Spliterators, org.eclipse.collections.api.DoubleIterable, .LazyDoubleIterable, .RichIterable, org.eclipse.collections.api.bag.primitive.MutableDoubleBag, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, .ObjectDoubleToObjectFunction, .ObjectDoubleIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, .DoubleIntProcedure, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection, org.eclipse.collections.api.factory.Lists, org.eclipse.collections.api.iterator.DoubleIterator, org.eclipse.collections.api.list.ImmutableList, .MutableList, org.eclipse.collections.api.list.primitive.ImmutableDoubleList, .DoubleList, .MutableDoubleList, org.eclipse.collections.api.set.primitive.MutableDoubleSet, org.eclipse.collections.api.stack.primitive.MutableDoubleStack, org.eclipse.collections.api.tuple.primitive.DoubleDoublePair, .DoubleObjectPair, org.eclipse.collections.impl.bag.mutable.primitive.DoubleHashBag, org.eclipse.collections.impl.factory.primitive.DoubleLists, .DoubleStacks, org.eclipse.collections.impl.lazy.primitive.LazyDoubleIterableAdapter, .ReverseDoubleIterable, org.eclipse.collections.impl.list.mutable.primitive.DoubleArrayList, org.eclipse.collections.impl.set.mutable.primitive.DoubleHashSet, org.eclipse.collections.impl.tuple.primitive.PrimitiveTuples, org.eclipse.collections.impl.utility.Iterate

ImmutableDoubleArrayList is the non-modifiable equivalent of DoubleArrayList. It wraps a Java double 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 double[]
private static final long

Constructor Summary

AccessConstructor and Description
private
ImmutableDoubleArrayList(double[] newElements)

Method Summary

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

Implements org.eclipse.collections.api.DoubleIterable.allSatisfy.

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

public boolean
anySatisfy(DoublePredicate predicate)

Implements org.eclipse.collections.api.DoubleIterable.anySatisfy.

Returns true if any of the elements in the DoubleIterable 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 LazyDoubleIterable
asLazy()

Implements org.eclipse.collections.api.DoubleIterable.asLazy.

Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.

public LazyDoubleIterable
public double
public int
public RichIterable<DoubleIterable>
chunk(int size)

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

Partitions elements in fixed size chunks.

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

Implements org.eclipse.collections.api.list.primitive.ImmutableDoubleList.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(DoubleToObjectFunction<? extends V> function, R target)

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

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

public boolean
contains(double value)

Implements org.eclipse.collections.api.DoubleIterable.contains.

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

public boolean
containsAll(double... source)

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

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

public boolean
containsAll(DoubleIterable source)

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

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

public int
count(DoublePredicate predicate)

Implements org.eclipse.collections.api.DoubleIterable.count.

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

public double
public ImmutableDoubleList
public double
public DoubleIterator
doubleIterator()

Implements org.eclipse.collections.api.DoubleIterable.doubleIterator.

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

public void
each(DoubleProcedure procedure)

Implements org.eclipse.collections.api.DoubleIterable.each.

A synonym for forEach.

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

Implements org.eclipse.collections.api.DoubleIterable.injectInto.

public <T> T
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 double
public double
public double
public double
public double
public static ImmutableDoubleArrayList
public static ImmutableDoubleArrayList
newListWith(double... elements)

public ImmutableDoubleList
public ImmutableDoubleList
public ImmutableDoubleList
public ImmutableDoubleList
public boolean
notEmpty()

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

The English equivalent of !this.isEmpty()

public ImmutableDoubleList
reject(DoublePredicate predicate)

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

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

public <R extends MutableDoubleCollection> R
reject(DoublePredicate predicate, R target)

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

Same as reject(DoublePredicate) , only the results are added to the target MutableDoubleCollection.

public ImmutableDoubleList
select(DoublePredicate predicate)

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

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

public <R extends MutableDoubleCollection> R
select(DoublePredicate predicate, R target)

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

Same as select(DoublePredicate) , only the results are added to the target MutableDoubleCollection.

public int
size()

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

Returns the number of items in this iterable.

public Spliterator.OfDouble
public ImmutableDoubleList
public double
public double[]
toArray()

Implements org.eclipse.collections.api.DoubleIterable.toArray.

Converts the DoubleIterable to a primitive double array.

public double[]
toArray(double[] target)

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

Converts the DoubleIterable to a primitive double array.

public MutableDoubleBag
toBag()

Implements org.eclipse.collections.api.DoubleIterable.toBag.

Converts the DoubleIterable to a new MutableDoubleBag.

public ImmutableDoubleList
toImmutable()

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

Returns an immutable copy of this list.

public MutableDoubleList
toList()

Implements org.eclipse.collections.api.DoubleIterable.toList.

Converts the DoubleIterable to a new MutableDoubleList.

public ImmutableDoubleArrayList
public MutableDoubleSet
toSet()

Implements org.eclipse.collections.api.DoubleIterable.toSet.

Converts the DoubleIterable to a new MutableDoubleSet.

public double[]
public MutableDoubleList
public MutableDoubleStack
toStack()

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

Converts the collection to a DoubleStack.

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<DoubleObjectPair<T>>
zip(Iterable<T> iterable)

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

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

public ImmutableList<DoubleDoublePair>
zipDouble(DoubleIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.ImmutableDoubleList.zipDouble.

Returns an ImmutableList formed from this ImmutableDoubleList and another DoubleList by combining corresponding elements in pairs.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait