DoubleIterable
, OrderedDoubleIterable
, PrimitiveIterable
, ReversibleDoubleIterable
ImmutableDoubleList
, MutableDoubleList
DoubleArrayList
, SynchronizedDoubleList
, UnmodifiableDoubleList
public interface DoubleList extends ReversibleDoubleIterable
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 as
List.equals(Object) . |
double |
get(int index) |
|
int |
hashCode() |
Follows the same general contract as
List.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 a
ListIterable formed from this DoubleList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<DoubleDoublePair> |
zipDouble(DoubleIterable iterable) |
Returns a
ListIterable formed from this DoubleList and another DoubleList by
combining corresponding elements in pairs. |
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, toBag, toList, toSet, toSortedArray, toSortedList
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
double get(int index)
double dotProduct(DoubleList list)
int binarySearch(double value)
int lastIndexOf(double value)
DoubleList select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface OrderedDoubleIterable
select
in interface ReversibleDoubleIterable
DoubleList reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface OrderedDoubleIterable
reject
in interface ReversibleDoubleIterable
default DoubleList tap(DoubleProcedure procedure)
tap
in interface DoubleIterable
<V> ListIterable<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface OrderedDoubleIterable
collect
in interface ReversibleDoubleIterable
default <V> ListIterable<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedDoubleIterable
collectWithIndex
in interface ReversibleDoubleIterable
boolean equals(Object o)
List.equals(Object)
.int hashCode()
List.hashCode()
.ImmutableDoubleList toImmutable()
DoubleList distinct()
distinct
in interface ReversibleDoubleIterable
DoubleList toReversed()
toReversed
in interface ReversibleDoubleIterable
DoubleList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)
default ListIterable<DoubleDoublePair> zipDouble(DoubleIterable iterable)
ListIterable
formed from this DoubleList
and another DoubleList
by
combining corresponding elements in pairs. If one of the two DoubleList
s is longer than the other, its
remaining elements are ignored.default <T> ListIterable<DoubleObjectPair<T>> zip(Iterable<T> iterable)
ListIterable
formed from this DoubleList
and a ListIterable
by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.Spliterator.OfDouble spliterator()
default DoubleStream primitiveStream()
default DoubleStream primitiveParallelStream()
Copyright © 2004–2019. All rights reserved.