Interface DoubleList
-
- All Superinterfaces:
DoubleIterable,OrderedDoubleIterable,PrimitiveIterable,ReversibleDoubleIterable
- All Known Subinterfaces:
ImmutableDoubleList,MutableDoubleList
public interface DoubleList extends ReversibleDoubleIterable
This file was automatically generated from template file primitiveList.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intbinarySearch(double value)<V> ListIterable<V>collect(DoubleToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.default <V> ListIterable<V>collectWithIndex(DoubleIntToObjectFunction<? extends V> function)Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.DoubleListdistinct()doubledotProduct(DoubleList list)booleanequals(Object o)Follows the same general contract asList.equals(Object).default voidforEachInBoth(DoubleList other, DoubleDoubleProcedure procedure)This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.doubleget(int index)inthashCode()Follows the same general contract asList.hashCode().intlastIndexOf(double value)default DoubleStreamprimitiveParallelStream()default DoubleStreamprimitiveStream()DoubleListreject(DoublePredicate predicate)Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.default DoubleListrejectWithIndex(DoubleIntPredicate predicate)Returns a new DoubleList excluding all elements with corresponding indexes matching the specified predicate.DoubleListselect(DoublePredicate predicate)Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.default DoubleListselectWithIndex(DoubleIntPredicate predicate)Returns a new DoubleList including all elements with corresponding indexes matching the specified predicate.Spliterator.OfDoublespliterator()DoubleListsubList(int fromIndex, int toIndex)default DoubleListtap(DoubleProcedure procedure)ImmutableDoubleListtoImmutable()Returns an immutable copy of this list.DoubleListtoReversed()default <T> ListIterable<DoubleObjectPair<T>>zip(Iterable<T> iterable)Returns aListIterableformed from thisDoubleListand aListIterableby combining corresponding elements in pairs.default ListIterable<DoubleDoublePair>zipDouble(DoubleIterable iterable)Returns aListIterableformed from thisDoubleListand anotherDoubleListby combining corresponding elements in pairs.-
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable
asReversed, getLast, injectIntoWithIndex
-
-
-
-
Method Detail
-
get
double get(int index)
-
dotProduct
double dotProduct(DoubleList list)
-
binarySearch
int binarySearch(double value)
-
lastIndexOf
int lastIndexOf(double value)
-
select
DoubleList select(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceOrderedDoubleIterable- Specified by:
selectin interfaceReversibleDoubleIterable
-
reject
DoubleList reject(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceOrderedDoubleIterable- Specified by:
rejectin interfaceReversibleDoubleIterable
-
tap
default DoubleList tap(DoubleProcedure procedure)
- Specified by:
tapin interfaceDoubleIterable- Since:
- 9.0.
-
forEachInBoth
default void forEachInBoth(DoubleList other, DoubleDoubleProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.- Since:
- 11.1
-
selectWithIndex
default DoubleList selectWithIndex(DoubleIntPredicate predicate)
Returns a new DoubleList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedDoubleIterable- Specified by:
selectWithIndexin interfaceReversibleDoubleIterable- Since:
- 11.1.
-
rejectWithIndex
default DoubleList rejectWithIndex(DoubleIntPredicate predicate)
Returns a new DoubleList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedDoubleIterable- Specified by:
rejectWithIndexin interfaceReversibleDoubleIterable- Since:
- 11.1.
-
collect
<V> ListIterable<V> collect(DoubleToObjectFunction<? extends V> function)
Description copied from interface:DoubleIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceOrderedDoubleIterable- Specified by:
collectin interfaceReversibleDoubleIterable
-
collectWithIndex
default <V> ListIterable<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceOrderedDoubleIterable- Specified by:
collectWithIndexin interfaceReversibleDoubleIterable- Since:
- 9.1.
-
equals
boolean equals(Object o)
Follows the same general contract asList.equals(Object).
-
hashCode
int hashCode()
Follows the same general contract asList.hashCode().
-
toImmutable
ImmutableDoubleList toImmutable()
Returns an immutable copy of this list. If the list is immutable, it returns itself.
-
distinct
DoubleList distinct()
- Specified by:
distinctin interfaceReversibleDoubleIterable- Since:
- 6.0.
-
toReversed
DoubleList toReversed()
- Specified by:
toReversedin interfaceReversibleDoubleIterable- Since:
- 5.0.
-
subList
DoubleList subList(int fromIndex, int toIndex)
- Since:
- 5.0.
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipDouble
default ListIterable<DoubleDoublePair> zipDouble(DoubleIterable iterable)
Returns aListIterableformed from thisDoubleListand anotherDoubleListby combining corresponding elements in pairs. If one of the twoDoubleLists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
default <T> ListIterable<DoubleObjectPair<T>> zip(Iterable<T> iterable)
Returns aListIterableformed from thisDoubleListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
spliterator
Spliterator.OfDouble spliterator()
- Since:
- 10.0
-
primitiveStream
default DoubleStream primitiveStream()
- Since:
- 10.0
-
primitiveParallelStream
default DoubleStream primitiveParallelStream()
- Since:
- 10.0
-
-