Interface DoubleList
- All Superinterfaces:
DoubleIterable,OrderedDoubleIterable,PrimitiveIterable,ReversibleDoubleIterable
- All Known Subinterfaces:
ImmutableDoubleList,MutableDoubleList
- All Known Implementing Classes:
DoubleArrayList,SynchronizedDoubleList,UnmodifiableDoubleList
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionintbinarySearch(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.distinct()doubledotProduct(DoubleList list) booleanFollows 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 DoubleStreamdefault DoubleStreamreject(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.select(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.subList(int fromIndex, int toIndex) default DoubleListtap(DoubleProcedure procedure) Returns an immutable copy of this list.default <T> ListIterable<DoubleObjectPair<T>>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, toSortedListByMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
get
double get(int index) -
dotProduct
-
binarySearch
int binarySearch(double value) -
lastIndexOf
int lastIndexOf(double value) -
select
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
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
- Specified by:
tapin interfaceDoubleIterable- Since:
- 9.0.
-
forEachInBoth
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.- Since:
- 11.1
-
selectWithIndex
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
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
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
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
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
- Since:
- 5.0.
- See Also:
-
zipDouble
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
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
- Since:
- 10.0
-
primitiveParallelStream
- Since:
- 10.0
-