DoubleIterable
, DoubleStack
, OrderedDoubleIterable
, PrimitiveIterable
DoubleArrayStack
, SynchronizedDoubleStack
, UnmodifiableDoubleStack
public interface MutableDoubleStack extends DoubleStack
Modifier and Type | Method | Description |
---|---|---|
MutableDoubleStack |
asSynchronized() |
|
MutableDoubleStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<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.
|
double |
pop() |
Removes and returns the top element of the stack.
|
DoubleList |
pop(int count) |
Removes and returns a DoubleList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(double item) |
Adds an item to the top of the stack.
|
MutableDoubleStack |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
MutableDoubleStack |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
allSatisfy, 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, toSortedList
equals, hashCode, peek, peek, peekAt, toImmutable
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void push(double item)
double pop()
DoubleList pop(int count)
void clear()
MutableDoubleStack select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface DoubleStack
select
in interface OrderedDoubleIterable
MutableDoubleStack reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface DoubleStack
reject
in interface OrderedDoubleIterable
<V> MutableStack<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface DoubleStack
collect
in interface OrderedDoubleIterable
MutableDoubleStack asUnmodifiable()
MutableDoubleStack asSynchronized()
Copyright © 2004–2017. All rights reserved.