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.
|
DoubleList |
distinct() |
|
double |
dotProduct(DoubleList list) |
|
boolean |
equals(java.lang.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) |
|
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.
|
DoubleList |
subList(int fromIndex,
int toIndex) |
|
default DoubleList |
tap(DoubleProcedure procedure) |
|
ImmutableDoubleList |
toImmutable() |
Returns an immutable copy of this list.
|
DoubleList |
toReversed() |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
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
boolean equals(java.lang.Object o)
List.equals(Object)
.equals
in class java.lang.Object
int hashCode()
List.hashCode()
.hashCode
in class java.lang.Object
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)
Copyright © 2004–2017. All rights reserved.