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