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.
|
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) |
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) |
ImmutableDoubleList |
toImmutable()
Returns an immutable copy of this list.
|
DoubleList |
toReversed() |
asReversed, getLast, injectIntoWithIndexforEachWithIndex, getFirst, indexOfallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, 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 ReversibleDoubleIterable<V> ListIterable<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface OrderedDoubleIterablecollect 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)}Copyright © 2004–2017. All rights reserved.