public interface MutableDoubleStack extends DoubleStack
| Modifier and Type | Method and 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.
|
default <V> MutableStack<V> |
collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default MutableDoubleStack |
newEmpty()
Creates a new empty mutable version of the same stack type.
|
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.
|
default MutableDoubleStack |
tap(DoubleProcedure procedure) |
equals, hashCode, peek, peek, peekAt, toImmutablecollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndexallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid push(double item)
double pop()
DoubleList pop(int count)
void clear()
MutableDoubleStack select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableselect in interface DoubleStackselect in interface OrderedDoubleIterableMutableDoubleStack reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface DoubleStackreject in interface OrderedDoubleIterabledefault MutableDoubleStack tap(DoubleProcedure procedure)
tap in interface DoubleIterabletap in interface DoubleStack<V> MutableStack<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface DoubleStackcollect in interface OrderedDoubleIterabledefault <V> MutableStack<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex in interface DoubleStackcollectWithIndex in interface OrderedDoubleIterableMutableDoubleStack asUnmodifiable()
MutableDoubleStack asSynchronized()
default MutableDoubleStack newEmpty()
Copyright © 2004–2021. All rights reserved.