@NotThreadSafe public final class BooleanArrayStack extends Object implements com.gs.collections.api.stack.primitive.MutableBooleanStack, Externalizable
ArrayStack, and is memory-optimized for boolean primitives.| Constructor and Description |
|---|
BooleanArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
com.gs.collections.api.LazyBooleanIterable |
asLazy() |
com.gs.collections.api.stack.primitive.MutableBooleanStack |
asSynchronized() |
com.gs.collections.api.stack.primitive.MutableBooleanStack |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableBooleanIterator |
booleanIterator() |
void |
clear() |
<V> com.gs.collections.api.stack.MutableStack<V> |
collect(com.gs.collections.api.block.function.primitive.BooleanToObjectFunction<? extends V> function) |
boolean |
contains(boolean value) |
boolean |
containsAll(boolean... source) |
boolean |
containsAll(com.gs.collections.api.BooleanIterable source) |
int |
count(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
boolean |
detectIfNone(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate,
boolean ifNone) |
void |
each(com.gs.collections.api.block.procedure.primitive.BooleanProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.BooleanProcedure procedure) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectBooleanToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
static BooleanArrayStack |
newStack(com.gs.collections.api.BooleanIterable items) |
static BooleanArrayStack |
newStackFromTopToBottom(boolean... items) |
static BooleanArrayStack |
newStackFromTopToBottom(com.gs.collections.api.BooleanIterable items) |
static BooleanArrayStack |
newStackWith(boolean... items) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
boolean |
notEmpty() |
boolean |
peek() |
com.gs.collections.api.list.primitive.BooleanList |
peek(int count) |
boolean |
peekAt(int index) |
boolean |
pop() |
com.gs.collections.api.list.primitive.BooleanList |
pop(int count) |
void |
push(boolean item) |
void |
readExternal(ObjectInput in) |
com.gs.collections.api.stack.primitive.MutableBooleanStack |
reject(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
com.gs.collections.api.stack.primitive.MutableBooleanStack |
select(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate) |
int |
size() |
boolean[] |
toArray() |
com.gs.collections.api.bag.primitive.MutableBooleanBag |
toBag() |
com.gs.collections.api.stack.primitive.ImmutableBooleanStack |
toImmutable() |
com.gs.collections.api.list.primitive.MutableBooleanList |
toList() |
com.gs.collections.api.set.primitive.MutableBooleanSet |
toSet() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static BooleanArrayStack newStackFromTopToBottom(boolean... items)
public static BooleanArrayStack newStackWith(boolean... items)
public static BooleanArrayStack newStack(com.gs.collections.api.BooleanIterable items)
public static BooleanArrayStack newStackFromTopToBottom(com.gs.collections.api.BooleanIterable items)
public void push(boolean item)
push in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic boolean pop()
pop in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic com.gs.collections.api.list.primitive.BooleanList pop(int count)
pop in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic com.gs.collections.api.stack.primitive.MutableBooleanStack select(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
select in interface com.gs.collections.api.BooleanIterableselect in interface com.gs.collections.api.stack.primitive.BooleanStackselect in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic com.gs.collections.api.stack.primitive.MutableBooleanStack reject(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
reject in interface com.gs.collections.api.BooleanIterablereject in interface com.gs.collections.api.stack.primitive.BooleanStackreject in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic com.gs.collections.api.stack.primitive.MutableBooleanStack asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic com.gs.collections.api.stack.primitive.MutableBooleanStack asSynchronized()
asSynchronized in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic com.gs.collections.api.stack.primitive.ImmutableBooleanStack toImmutable()
toImmutable in interface com.gs.collections.api.stack.primitive.BooleanStackpublic boolean peek()
peek in interface com.gs.collections.api.stack.primitive.BooleanStackpublic com.gs.collections.api.list.primitive.BooleanList peek(int count)
peek in interface com.gs.collections.api.stack.primitive.BooleanStackpublic boolean peekAt(int index)
peekAt in interface com.gs.collections.api.stack.primitive.BooleanStackpublic com.gs.collections.api.iterator.MutableBooleanIterator booleanIterator()
booleanIterator in interface com.gs.collections.api.BooleanIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.BooleanProcedure procedure)
forEach in interface com.gs.collections.api.BooleanIterablepublic void each(com.gs.collections.api.block.procedure.primitive.BooleanProcedure procedure)
each in interface com.gs.collections.api.BooleanIterablepublic int size()
size in interface com.gs.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface com.gs.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface com.gs.collections.api.PrimitiveIterablepublic int count(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
count in interface com.gs.collections.api.BooleanIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
anySatisfy in interface com.gs.collections.api.BooleanIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
allSatisfy in interface com.gs.collections.api.BooleanIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate)
noneSatisfy in interface com.gs.collections.api.BooleanIterablepublic boolean detectIfNone(com.gs.collections.api.block.predicate.primitive.BooleanPredicate predicate,
boolean ifNone)
detectIfNone in interface com.gs.collections.api.BooleanIterablepublic <V> com.gs.collections.api.stack.MutableStack<V> collect(com.gs.collections.api.block.function.primitive.BooleanToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.BooleanIterablecollect in interface com.gs.collections.api.stack.primitive.BooleanStackcollect in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic <V> V injectInto(V injectedValue,
com.gs.collections.api.block.function.primitive.ObjectBooleanToObjectFunction<? super V,? extends V> function)
injectInto in interface com.gs.collections.api.BooleanIterablepublic boolean[] toArray()
toArray in interface com.gs.collections.api.BooleanIterablepublic boolean contains(boolean value)
contains in interface com.gs.collections.api.BooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface com.gs.collections.api.BooleanIterablepublic boolean containsAll(com.gs.collections.api.BooleanIterable source)
containsAll in interface com.gs.collections.api.BooleanIterablepublic void clear()
clear in interface com.gs.collections.api.stack.primitive.MutableBooleanStackpublic boolean equals(Object otherStack)
public int hashCode()
public String toString()
public String makeString()
makeString in interface com.gs.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface com.gs.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface com.gs.collections.api.PrimitiveIterablepublic com.gs.collections.api.list.primitive.MutableBooleanList toList()
toList in interface com.gs.collections.api.BooleanIterablepublic com.gs.collections.api.set.primitive.MutableBooleanSet toSet()
toSet in interface com.gs.collections.api.BooleanIterablepublic com.gs.collections.api.bag.primitive.MutableBooleanBag toBag()
toBag in interface com.gs.collections.api.BooleanIterablepublic com.gs.collections.api.LazyBooleanIterable asLazy()
asLazy in interface com.gs.collections.api.BooleanIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2016. All rights reserved.