BooleanIterable
, BooleanStack
, OrderedBooleanIterable
, PrimitiveIterable
BooleanArrayStack
, SynchronizedBooleanStack
, UnmodifiableBooleanStack
public interface MutableBooleanStack extends BooleanStack
Modifier and Type | Method | Description |
---|---|---|
MutableBooleanStack |
asSynchronized() |
|
MutableBooleanStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<V> |
collect(BooleanToObjectFunction<? 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(BooleanIntToObjectFunction<? extends V> function) |
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default MutableBooleanStack |
newEmpty() |
Creates a new empty mutable version of the same stack type.
|
boolean |
pop() |
Removes and returns the top element of the stack.
|
BooleanList |
pop(int count) |
Removes and returns a BooleanList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(boolean item) |
Adds an item to the top of the stack.
|
MutableBooleanStack |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
MutableBooleanStack |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
default MutableBooleanStack |
tap(BooleanProcedure procedure) |
allSatisfy, anySatisfy, asLazy, booleanIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toBag, toList, toSet
equals, hashCode, peek, peek, peekAt, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void push(boolean item)
boolean pop()
BooleanList pop(int count)
void clear()
MutableBooleanStack select(BooleanPredicate predicate)
BooleanIterable
select
in interface BooleanIterable
select
in interface BooleanStack
select
in interface OrderedBooleanIterable
MutableBooleanStack reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanIterable
reject
in interface BooleanStack
reject
in interface OrderedBooleanIterable
default MutableBooleanStack tap(BooleanProcedure procedure)
tap
in interface BooleanIterable
tap
in interface BooleanStack
<V> MutableStack<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterable
collect
in interface BooleanIterable
collect
in interface BooleanStack
collect
in interface OrderedBooleanIterable
default <V> MutableStack<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
collectWithIndex
in interface BooleanStack
collectWithIndex
in interface OrderedBooleanIterable
MutableBooleanStack asUnmodifiable()
MutableBooleanStack asSynchronized()
default MutableBooleanStack newEmpty()
Copyright © 2004–2020. All rights reserved.