public interface DoubleList extends ReversibleDoubleIterable
| Modifier and Type | Method and 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). |
default void |
forEachInBoth(DoubleList other,
DoubleDoubleProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.
|
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.
|
default DoubleList |
rejectWithIndex(DoubleIntPredicate predicate)
Returns a new DoubleList excluding all elements with corresponding indexes matching 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.
|
default DoubleList |
selectWithIndex(DoubleIntPredicate predicate)
Returns a new DoubleList including all elements with corresponding indexes matching 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. |
asReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexallSatisfy, 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, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringdouble get(int index)
double dotProduct(DoubleList list)
int binarySearch(double value)
int lastIndexOf(double value)
DoubleList select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableselect in interface OrderedDoubleIterableselect in interface ReversibleDoubleIterableDoubleList reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface OrderedDoubleIterablereject in interface ReversibleDoubleIterabledefault DoubleList tap(DoubleProcedure procedure)
tap in interface DoubleIterabledefault void forEachInBoth(DoubleList other, DoubleDoubleProcedure procedure)
default DoubleList selectWithIndex(DoubleIntPredicate predicate)
selectWithIndex in interface OrderedDoubleIterableselectWithIndex in interface ReversibleDoubleIterabledefault DoubleList rejectWithIndex(DoubleIntPredicate predicate)
rejectWithIndex in interface OrderedDoubleIterablerejectWithIndex in interface ReversibleDoubleIterable<V> ListIterable<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface OrderedDoubleIterablecollect in interface ReversibleDoubleIterabledefault <V> ListIterable<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedDoubleIterablecollectWithIndex in interface ReversibleDoubleIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableDoubleList toImmutable()
DoubleList distinct()
distinct in interface ReversibleDoubleIterableDoubleList toReversed()
toReversed in interface ReversibleDoubleIterableDoubleList 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 DoubleLists 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–2023. All rights reserved.