public interface DoubleStack extends DoubleIterable
Modifier and Type | Method and Description |
---|---|
<V> StackIterable<V> |
collect(DoubleToObjectFunction<? extends V> function) |
boolean |
equals(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) |
DoubleStack |
select(DoublePredicate predicate) |
ImmutableDoubleStack |
toImmutable() |
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
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)
select
in interface DoubleIterable
DoubleStack reject(DoublePredicate predicate)
reject
in interface DoubleIterable
<V> StackIterable<V> collect(DoubleToObjectFunction<? extends V> function)
collect
in interface DoubleIterable
boolean equals(Object o)
StackIterable.equals(Object)
.int hashCode()
StackIterable.hashCode()
.ImmutableDoubleStack toImmutable()
Copyright © 2004–2016. All rights reserved.