Class BooleanArrayStack
java.lang.Object
org.eclipse.collections.impl.stack.primitive.AbstractBooleanStack
org.eclipse.collections.impl.stack.mutable.primitive.BooleanArrayStack
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,OrderedBooleanIterable,PrimitiveIterable,BooleanStack,MutableBooleanStack
public class BooleanArrayStack
extends AbstractBooleanStack
implements MutableBooleanStack, Externalizable
BooleanArrayStack is similar to
ArrayStack, and is memory-optimized for boolean primitives.
This file was automatically generated from template file primitiveArrayStack.stg.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()<V> MutableStack<V>collect(BooleanToObjectFunction<? extends V> function) booleaninthashCode()newEmpty()Creates a new empty BooleanArrayStack.static BooleanArrayStacknewStack(BooleanIterable items) static BooleanArrayStacknewStackFromTopToBottom(boolean... items) static BooleanArrayStackstatic BooleanArrayStacknewStackWith(boolean... items) booleanpop()pop(int count) voidpush(boolean item) voidreject(BooleanPredicate predicate) select(BooleanPredicate predicate) toStack()voidMethods inherited from class org.eclipse.collections.impl.stack.primitive.AbstractBooleanStack
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, toStringMethods inherited from interface org.eclipse.collections.api.BooleanIterable
allSatisfy, 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, toSetMethods inherited from interface org.eclipse.collections.api.stack.primitive.BooleanStack
peek, peek, peekAtMethods inherited from interface org.eclipse.collections.api.stack.primitive.MutableBooleanStack
collectWithIndex, rejectWithIndex, selectWithIndex, tapMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex, rejectWithIndex, selectWithIndexMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
BooleanArrayStack
public BooleanArrayStack()
-
-
Method Details
-
newStackFromTopToBottom
-
newStackWith
-
newStack
-
newStackFromTopToBottom
-
push
public void push(boolean item) - Specified by:
pushin interfaceMutableBooleanStack
-
pop
public boolean pop()- Specified by:
popin interfaceMutableBooleanStack
-
pop
- Specified by:
popin interfaceMutableBooleanStack
-
select
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanStack- Specified by:
selectin interfaceMutableBooleanStack- Specified by:
selectin interfaceOrderedBooleanIterable
-
reject
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanStack- Specified by:
rejectin interfaceMutableBooleanStack- Specified by:
rejectin interfaceOrderedBooleanIterable
-
collect
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceBooleanStack- Specified by:
collectin interfaceMutableBooleanStack- Specified by:
collectin interfaceOrderedBooleanIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableBooleanStack
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableBooleanStack
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableBooleanStack
-
toImmutable
- Specified by:
toImmutablein interfaceBooleanStack
-
newEmpty
Creates a new empty BooleanArrayStack.- Specified by:
newEmptyin interfaceMutableBooleanStack- Since:
- 9.2.
-
equals
- Specified by:
equalsin interfaceBooleanStack- Overrides:
equalsin classAbstractBooleanStack
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceBooleanStack- Overrides:
hashCodein classAbstractBooleanStack
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
toStack
- Specified by:
toStackin interfaceOrderedBooleanIterable
-