DoubleIterable
, OrderedDoubleIterable
, PrimitiveIterable
ImmutableDoubleStack
, MutableDoubleStack
AbstractDoubleStack
, DoubleArrayStack
, SynchronizedDoubleStack
, UnmodifiableDoubleStack
public interface DoubleStack extends OrderedDoubleIterable
Modifier and Type | Method | Description |
---|---|---|
<V> StackIterable<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> StackIterable<V> |
collectWithIndex(DoubleIntToObjectFunction<? extends V> function) |
Returns a new StackIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
boolean |
equals(java.lang.Object o) |
Follows the same general contract as
StackIterable.equals(Object) . |
int |
hashCode() |
Follows the same general contract as
StackIterable.hashCode() . |
double |
peek() |
Returns the top of the stack.
|
DoubleList |
peek(int count) |
Returns DoubleList of the number of elements specified by the count, beginning with the top of the stack.
|
double |
peekAt(int index) |
Returns the element at the specified index.
|
DoubleStack |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
DoubleStack |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
default DoubleStack |
tap(DoubleProcedure procedure) |
|
ImmutableDoubleStack |
toImmutable() |
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
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
double peek()
DoubleList peek(int count)
double peekAt(int index)
index
- the location to peek intoDoubleStack select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface OrderedDoubleIterable
DoubleStack reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface OrderedDoubleIterable
default DoubleStack tap(DoubleProcedure procedure)
tap
in interface DoubleIterable
<V> StackIterable<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface OrderedDoubleIterable
default <V> StackIterable<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedDoubleIterable
boolean equals(java.lang.Object o)
StackIterable.equals(Object)
.equals
in class java.lang.Object
int hashCode()
StackIterable.hashCode()
.hashCode
in class java.lang.Object
ImmutableDoubleStack toImmutable()
Copyright © 2004–2018. All rights reserved.