Interface DoubleList
- All Superinterfaces:
DoubleIterable
,OrderedDoubleIterable
,PrimitiveIterable
,ReversibleDoubleIterable
- All Known Subinterfaces:
ImmutableDoubleList
,MutableDoubleList
- All Known Implementing Classes:
DoubleArrayList
,SynchronizedDoubleList
,UnmodifiableDoubleList
public interface DoubleList extends ReversibleDoubleIterable
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method Description int
binarySearch(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.DoubleList
distinct()
double
dotProduct(DoubleList list)
boolean
equals(Object o)
Follows the same general contract asList.equals(Object)
.double
get(int index)
int
hashCode()
Follows the same general contract asList.hashCode()
.int
lastIndexOf(double value)
default DoubleStream
primitiveParallelStream()
default DoubleStream
primitiveStream()
DoubleList
reject(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.DoubleList
select(DoublePredicate predicate)
Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.Spliterator.OfDouble
spliterator()
DoubleList
subList(int fromIndex, int toIndex)
default DoubleList
tap(DoubleProcedure procedure)
ImmutableDoubleList
toImmutable()
Returns an immutable copy of this list.DoubleList
toReversed()
default <T> ListIterable<DoubleObjectPair<T>>
zip(Iterable<T> iterable)
Returns aListIterable
formed from thisDoubleList
and aListIterable
by combining corresponding elements in pairs.default ListIterable<DoubleDoublePair>
zipDouble(DoubleIterable iterable)
Returns aListIterable
formed from thisDoubleList
and anotherDoubleList
by 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, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf
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 Details
-
get
double get(int index) -
dotProduct
-
binarySearch
int binarySearch(double value) -
lastIndexOf
int lastIndexOf(double value) -
select
Description copied from interface:DoubleIterable
Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.- Specified by:
select
in interfaceDoubleIterable
- Specified by:
select
in interfaceOrderedDoubleIterable
- Specified by:
select
in interfaceReversibleDoubleIterable
-
reject
Description copied from interface:DoubleIterable
Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.- Specified by:
reject
in interfaceDoubleIterable
- Specified by:
reject
in interfaceOrderedDoubleIterable
- Specified by:
reject
in interfaceReversibleDoubleIterable
-
tap
- Specified by:
tap
in interfaceDoubleIterable
- Since:
- 9.0.
-
collect
Description copied from interface:DoubleIterable
Returns 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:
collect
in interfaceDoubleIterable
- Specified by:
collect
in interfaceOrderedDoubleIterable
- Specified by:
collect
in interfaceReversibleDoubleIterable
-
collectWithIndex
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceOrderedDoubleIterable
- Specified by:
collectWithIndex
in 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:
distinct
in interfaceReversibleDoubleIterable
- Since:
- 6.0.
-
toReversed
DoubleList toReversed()- Specified by:
toReversed
in interfaceReversibleDoubleIterable
- Since:
- 5.0.
-
subList
- Since:
- 5.0.
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipDouble
Returns aListIterable
formed from thisDoubleList
and anotherDoubleList
by combining corresponding elements in pairs. If one of the twoDoubleList
s is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
Returns aListIterable
formed from thisDoubleList
and aListIterable
by 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
-