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.
|
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, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reject, select, toArray, toBag, toList, toSet
equals, hashCode, peek, peek, peekAt, toImmutable
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
MutableBooleanStack asUnmodifiable()
MutableBooleanStack asSynchronized()
Copyright © 2004–2017. All rights reserved.