public class SynchronizedBooleanStack extends Object implements MutableBooleanStack, Serializable
MutableBooleanStack. It is imperative that the user manually synchronize on the collection when iterating over it using the
BooleanIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveStack.stg.
MutableBooleanStack.asSynchronized(),
MutableStack.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedBooleanStack(MutableBooleanStack stack) |
SynchronizedBooleanStack(MutableBooleanStack stack,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(BooleanPredicate predicate) |
boolean |
anySatisfy(BooleanPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyBooleanIterable |
asLazy() |
MutableBooleanStack |
asSynchronized() |
MutableBooleanStack |
asUnmodifiable() |
BooleanIterator |
booleanIterator()
Must be called in a synchronized block.
|
RichIterable<BooleanIterable> |
chunk(int size) |
void |
clear() |
<V> MutableStack<V> |
collect(BooleanToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
<V,R extends Collection<V>> |
collectWithIndex(BooleanIntToObjectFunction<? extends V> function,
R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
boolean |
contains(boolean value) |
boolean |
containsAll(boolean... source) |
boolean |
containsAll(BooleanIterable source) |
int |
count(BooleanPredicate predicate) |
boolean |
detectIfNone(BooleanPredicate predicate,
boolean ifNone) |
void |
each(BooleanProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEachWithIndex(BooleanIntProcedure procedure) |
boolean |
getFirst() |
int |
hashCode() |
int |
indexOf(boolean value) |
<T> T |
injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectBooleanIntToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
MutableBooleanStack |
newEmpty() |
boolean |
noneSatisfy(BooleanPredicate predicate) |
boolean |
notEmpty() |
boolean |
peek() |
BooleanList |
peek(int count) |
boolean |
peekAt(int index) |
boolean |
pop() |
BooleanList |
pop(int count) |
void |
push(boolean item) |
MutableBooleanStack |
reject(BooleanPredicate predicate) |
MutableBooleanStack |
rejectWithIndex(BooleanIntPredicate predicate)
Returns a new MutableBooleanStack excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableBooleanCollection> |
rejectWithIndex(BooleanIntPredicate predicate,
R target)
Returns a new MutableBooleanCollection excluding all elements with corresponding indexes matching the specified predicate.
|
MutableBooleanStack |
select(BooleanPredicate predicate) |
MutableBooleanStack |
selectWithIndex(BooleanIntPredicate predicate)
Returns a new MutableBooleanStack including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableBooleanCollection> |
selectWithIndex(BooleanIntPredicate predicate,
R target)
Returns a new MutableBooleanCollection including all elements with corresponding indexes matching the specified predicate.
|
int |
size() |
boolean[] |
toArray() |
boolean[] |
toArray(boolean[] target) |
MutableBooleanBag |
toBag() |
ImmutableBooleanStack |
toImmutable() |
MutableBooleanList |
toList() |
MutableBooleanSet |
toSet() |
String |
toString() |
tapcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, selectpublic SynchronizedBooleanStack(MutableBooleanStack stack)
public SynchronizedBooleanStack(MutableBooleanStack stack, Object newLock)
public void push(boolean item)
push in interface MutableBooleanStackpublic boolean pop()
pop in interface MutableBooleanStackpublic BooleanList pop(int count)
pop in interface MutableBooleanStackpublic boolean peek()
peek in interface BooleanStackpublic BooleanList peek(int count)
peek in interface BooleanStackpublic boolean peekAt(int index)
peekAt in interface BooleanStackpublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableBooleanStackpublic boolean contains(boolean value)
contains in interface BooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface BooleanIterablepublic boolean containsAll(BooleanIterable source)
containsAll in interface BooleanIterablepublic BooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablepublic void each(BooleanProcedure procedure)
each in interface BooleanIterablepublic 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 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 boolean[] toArray()
toArray in interface BooleanIterablepublic boolean[] toArray(boolean[] target)
toArray in interface BooleanIterablepublic 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 MutableBooleanList toList()
toList in interface BooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterablepublic boolean equals(Object otherStack)
equals in interface BooleanStackequals in class Objectpublic int hashCode()
hashCode in interface BooleanStackhashCode in class Objectpublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterablepublic MutableBooleanStack asUnmodifiable()
asUnmodifiable in interface MutableBooleanStackpublic MutableBooleanStack asSynchronized()
asSynchronized in interface MutableBooleanStackpublic ImmutableBooleanStack toImmutable()
toImmutable in interface BooleanStackpublic MutableBooleanStack newEmpty()
newEmpty in interface MutableBooleanStackpublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterablepublic RichIterable<BooleanIterable> chunk(int size)
chunk in interface BooleanIterablepublic 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 MutableBooleanStack selectWithIndex(BooleanIntPredicate predicate)
selectWithIndex in interface OrderedBooleanIterableselectWithIndex in interface BooleanStackselectWithIndex in interface MutableBooleanStackpublic <R extends MutableBooleanCollection> R selectWithIndex(BooleanIntPredicate predicate, R target)
selectWithIndex in interface OrderedBooleanIterablepublic MutableBooleanStack rejectWithIndex(BooleanIntPredicate predicate)
rejectWithIndex in interface OrderedBooleanIterablerejectWithIndex in interface BooleanStackrejectWithIndex in interface MutableBooleanStackpublic <R extends MutableBooleanCollection> R rejectWithIndex(BooleanIntPredicate predicate, R target)
rejectWithIndex in interface OrderedBooleanIterablepublic <V> MutableStack<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedBooleanIterablecollectWithIndex in interface BooleanStackcollectWithIndex in interface MutableBooleanStackpublic <V,R extends Collection<V>> R collectWithIndex(BooleanIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedBooleanIterableCopyright © 2004–2022. All rights reserved.