public class BooleanArrayStack extends AbstractBooleanStack implements MutableBooleanStack, Externalizable
ArrayStack, and is memory-optimized for boolean primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
BooleanArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
MutableBooleanStack |
asSynchronized() |
MutableBooleanStack |
asUnmodifiable() |
void |
clear() |
<V> MutableStack<V> |
collect(BooleanToObjectFunction<? extends V> function) |
boolean |
equals(Object otherStack) |
int |
hashCode() |
BooleanArrayStack |
newEmpty()
Creates a new empty BooleanArrayStack.
|
static BooleanArrayStack |
newStack(BooleanIterable items) |
static BooleanArrayStack |
newStackFromTopToBottom(boolean... items) |
static BooleanArrayStack |
newStackFromTopToBottom(BooleanIterable items) |
static BooleanArrayStack |
newStackWith(boolean... items) |
boolean |
pop() |
BooleanList |
pop(int count) |
void |
push(boolean item) |
void |
readExternal(ObjectInput in) |
MutableBooleanStack |
reject(BooleanPredicate predicate) |
MutableBooleanStack |
select(BooleanPredicate predicate) |
ImmutableBooleanStack |
toImmutable() |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, booleanIterator, chunk, contains, containsAll, containsAll, count, detectIfNone, each, forEachWithIndex, getFirst, indexOf, injectInto, injectIntoWithIndex, makeString, makeString, makeString, noneSatisfy, peek, peek, peekAt, size, toArray, toArray, toBag, toList, toSet, toStringcollectWithIndex, rejectWithIndex, selectWithIndex, tappeek, peek, peekAtcollectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, booleanIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static BooleanArrayStack newStackFromTopToBottom(boolean... items)
public static BooleanArrayStack newStackWith(boolean... items)
public static BooleanArrayStack newStack(BooleanIterable items)
public static BooleanArrayStack newStackFromTopToBottom(BooleanIterable items)
public void push(boolean item)
push in interface MutableBooleanStackpublic boolean pop()
pop in interface MutableBooleanStackpublic BooleanList pop(int count)
pop in interface MutableBooleanStackpublic MutableBooleanStack select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface OrderedBooleanIterableselect in interface BooleanStackselect in interface MutableBooleanStackpublic MutableBooleanStack reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface OrderedBooleanIterablereject in interface BooleanStackreject in interface MutableBooleanStackpublic <V> MutableStack<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface OrderedBooleanIterablecollect in interface BooleanStackcollect in interface MutableBooleanStackpublic void clear()
clear in interface MutableBooleanStackpublic MutableBooleanStack asUnmodifiable()
asUnmodifiable in interface MutableBooleanStackpublic MutableBooleanStack asSynchronized()
asSynchronized in interface MutableBooleanStackpublic ImmutableBooleanStack toImmutable()
toImmutable in interface BooleanStackpublic BooleanArrayStack newEmpty()
newEmpty in interface MutableBooleanStackpublic boolean equals(Object otherStack)
equals in interface BooleanStackequals in class AbstractBooleanStackpublic int hashCode()
hashCode in interface BooleanStackhashCode in class AbstractBooleanStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2022. All rights reserved.