DoubleIterable
, DoubleList
, ImmutableDoubleCollection
, OrderedDoubleIterable
, PrimitiveIterable
, ReversibleDoubleIterable
public interface ImmutableDoubleList extends ImmutableDoubleCollection, DoubleList
Modifier and Type | Method | Description |
---|---|---|
<V> ImmutableList<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> ImmutableList<V> |
collectWithIndex(DoubleIntToObjectFunction<? extends V> function) |
Returns a new ImmutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
ImmutableDoubleList |
distinct() |
|
ImmutableDoubleList |
newWith(double element) |
|
ImmutableDoubleList |
newWithAll(DoubleIterable elements) |
|
ImmutableDoubleList |
newWithout(double element) |
|
ImmutableDoubleList |
newWithoutAll(DoubleIterable elements) |
|
ImmutableDoubleList |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
ImmutableDoubleList |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
ImmutableDoubleList |
subList(int fromIndex,
int toIndex) |
|
default ImmutableDoubleList |
tap(DoubleProcedure procedure) |
|
ImmutableDoubleList |
toReversed() |
|
default <T> ImmutableList<DoubleObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns an
ImmutableList formed from this ImmutableDoubleList and a ListIterable by
combining corresponding elements in pairs. |
default ImmutableList<DoubleDoublePair> |
zipDouble(DoubleIterable iterable) |
Returns an
ImmutableList formed from this ImmutableDoubleList 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
ImmutableDoubleList select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface DoubleList
select
in interface ImmutableDoubleCollection
select
in interface OrderedDoubleIterable
select
in interface ReversibleDoubleIterable
ImmutableDoubleList reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface DoubleList
reject
in interface ImmutableDoubleCollection
reject
in interface OrderedDoubleIterable
reject
in interface ReversibleDoubleIterable
default ImmutableDoubleList tap(DoubleProcedure procedure)
tap
in interface DoubleIterable
tap
in interface DoubleList
tap
in interface ImmutableDoubleCollection
<V> ImmutableList<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface DoubleList
collect
in interface ImmutableDoubleCollection
collect
in interface OrderedDoubleIterable
collect
in interface ReversibleDoubleIterable
default <V> ImmutableList<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex
in interface DoubleList
collectWithIndex
in interface OrderedDoubleIterable
collectWithIndex
in interface ReversibleDoubleIterable
ImmutableDoubleList newWith(double element)
newWith
in interface ImmutableDoubleCollection
ImmutableDoubleList newWithout(double element)
newWithout
in interface ImmutableDoubleCollection
ImmutableDoubleList newWithAll(DoubleIterable elements)
newWithAll
in interface ImmutableDoubleCollection
ImmutableDoubleList newWithoutAll(DoubleIterable elements)
newWithoutAll
in interface ImmutableDoubleCollection
ImmutableDoubleList toReversed()
toReversed
in interface DoubleList
toReversed
in interface ReversibleDoubleIterable
ImmutableDoubleList distinct()
distinct
in interface DoubleList
distinct
in interface ReversibleDoubleIterable
ImmutableDoubleList subList(int fromIndex, int toIndex)
subList
in interface DoubleList
List.subList(int fromIndex, int toIndex)
default ImmutableList<DoubleDoublePair> zipDouble(DoubleIterable iterable)
ImmutableList
formed from this ImmutableDoubleList
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.zipDouble
in interface DoubleList
default <T> ImmutableList<DoubleObjectPair<T>> zip(java.lang.Iterable<T> iterable)
ImmutableList
formed from this ImmutableDoubleList
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.zip
in interface DoubleList
Copyright © 2004–2018. All rights reserved.