public class SynchronizedBooleanIterable extends Object implements BooleanIterable, Serializable
| 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() |
BooleanIterator |
booleanIterator()
Must be called in a synchronized block.
|
RichIterable<BooleanIterable> |
chunk(int size) |
<V> RichIterable<V> |
collect(BooleanToObjectFunction<? extends V> function) |
boolean |
contains(boolean value) |
boolean |
containsAll(boolean... source) |
boolean |
containsAll(BooleanIterable source) |
boolean |
containsAny(boolean... source) |
boolean |
containsAny(BooleanIterable source) |
boolean |
containsNone(boolean... source) |
boolean |
containsNone(BooleanIterable source) |
int |
count(BooleanPredicate predicate) |
boolean |
detectIfNone(BooleanPredicate predicate,
boolean ifNone) |
void |
each(BooleanProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
boolean |
noneSatisfy(BooleanPredicate predicate) |
boolean |
notEmpty() |
static SynchronizedBooleanIterable |
of(BooleanIterable iterable)
This method will take a BooleanIterable and wrap it directly in a SynchronizedBooleanIterable.
|
static SynchronizedBooleanIterable |
of(BooleanIterable iterable,
Object lock)
This method will take a BooleanIterable and wrap it directly in a SynchronizedBooleanIterable.
|
boolean |
reduce(BooleanBooleanToBooleanFunction accumulator) |
boolean |
reduceIfEmpty(BooleanBooleanToBooleanFunction accumulator,
boolean defaultValue) |
BooleanIterable |
reject(BooleanPredicate predicate) |
BooleanIterable |
select(BooleanPredicate predicate) |
int |
size() |
boolean[] |
toArray() |
boolean[] |
toArray(boolean[] target) |
MutableBooleanBag |
toBag() |
MutableBooleanList |
toList() |
MutableBooleanSet |
toSet() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reject, select, tappublic static SynchronizedBooleanIterable of(BooleanIterable iterable)
public static SynchronizedBooleanIterable of(BooleanIterable iterable, Object lock)
public boolean[] toArray()
toArray in interface BooleanIterablepublic boolean[] toArray(boolean[] target)
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 boolean containsAny(boolean... source)
containsAny in interface BooleanIterablepublic boolean containsAny(BooleanIterable source)
containsAny in interface BooleanIterablepublic boolean containsNone(boolean... source)
containsNone in interface BooleanIterablepublic boolean containsNone(BooleanIterable source)
containsNone in interface BooleanIterablepublic void each(BooleanProcedure procedure)
each in interface BooleanIterablepublic BooleanIterable select(BooleanPredicate predicate)
select in interface BooleanIterablepublic BooleanIterable reject(BooleanPredicate predicate)
reject in interface BooleanIterablepublic <V> RichIterable<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablepublic boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone 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 MutableBooleanList toList()
toList in interface BooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterablepublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterablepublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterablepublic boolean reduce(BooleanBooleanToBooleanFunction accumulator)
reduce in interface BooleanIterablepublic boolean reduceIfEmpty(BooleanBooleanToBooleanFunction accumulator, boolean defaultValue)
reduceIfEmpty in interface BooleanIterablepublic RichIterable<BooleanIterable> chunk(int size)
chunk 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 BooleanIterator booleanIterator()
booleanIterator in interface BooleanIterableCopyright © 2004–2022. All rights reserved.