public final class BooleanArrayStack extends Object implements MutableBooleanStack, Externalizable
ArrayStack, and is memory-optimized for boolean primitives.| Constructor and Description |
|---|
BooleanArrayStack() |
collectWithIndex, newEmpty, tapcollectWithIndexcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reduce, reduceIfEmpty, reject, selectpublic 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 MutableBooleanStack asUnmodifiable()
asUnmodifiable in interface MutableBooleanStackpublic MutableBooleanStack asSynchronized()
asSynchronized in interface MutableBooleanStackpublic ImmutableBooleanStack toImmutable()
toImmutable in interface BooleanStackpublic boolean peek()
peek in interface BooleanStackpublic BooleanList peek(int count)
peek in interface BooleanStackpublic boolean peekAt(int index)
peekAt in interface BooleanStackpublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablepublic void forEach(BooleanProcedure procedure)
forEach in interface BooleanIterablepublic void each(BooleanProcedure procedure)
each in interface BooleanIterablepublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic int count(BooleanPredicate predicate)
count in interface BooleanIterablepublic boolean anySatisfy(BooleanPredicate predicate)
anySatisfy in interface BooleanIterablepublic boolean allSatisfy(BooleanPredicate predicate)
allSatisfy in interface BooleanIterablepublic boolean noneSatisfy(BooleanPredicate predicate)
noneSatisfy in interface BooleanIterablepublic boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone in interface BooleanIterablepublic <V> MutableStack<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface OrderedBooleanIterablecollect in interface BooleanStackcollect in interface MutableBooleanStackpublic <V> V injectInto(V injectedValue,
ObjectBooleanToObjectFunction<? super V,? extends V> function)
injectInto in interface BooleanIterablepublic RichIterable<BooleanIterable> chunk(int size)
chunk in interface BooleanIterablepublic boolean[] toArray()
toArray in interface BooleanIterablepublic boolean contains(boolean value)
contains in interface BooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface BooleanIterablepublic boolean containsAll(BooleanIterable source)
containsAll in interface BooleanIterablepublic void clear()
clear in interface MutableBooleanStackpublic boolean equals(Object otherStack)
equals in interface BooleanStackequals in class Objectpublic int hashCode()
hashCode in interface BooleanStackhashCode in class Objectpublic String toString()
toString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic boolean getFirst()
getFirst in interface OrderedBooleanIterablepublic int indexOf(boolean value)
indexOf in interface OrderedBooleanIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectBooleanIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedBooleanIterablepublic void forEachWithIndex(BooleanIntProcedure procedure)
forEachWithIndex in interface OrderedBooleanIterablepublic MutableBooleanList toList()
toList in interface BooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterablepublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2020. All rights reserved.