Class SynchronizedBooleanIterable
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.SynchronizedBooleanIterable
-
- All Implemented Interfaces:
Serializable
,BooleanIterable
,PrimitiveIterable
public class SynchronizedBooleanIterable extends Object implements BooleanIterable, Serializable
A synchronized view of a BooleanIterable. This file was automatically generated from template file synchronizedPrimitiveIterable.stg.- Since:
- 5.0.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.BooleanIterable
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reject, select, tap
-
-
-
-
Method Detail
-
of
public static SynchronizedBooleanIterable of(BooleanIterable iterable)
This method will take a BooleanIterable and wrap it directly in a SynchronizedBooleanIterable.
-
of
public static SynchronizedBooleanIterable of(BooleanIterable iterable, Object lock)
This method will take a BooleanIterable and wrap it directly in a SynchronizedBooleanIterable. Additionally, a developer specifies which lock to use with the collection.
-
toArray
public boolean[] toArray()
- Specified by:
toArray
in interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target)
- Specified by:
toArray
in interfaceBooleanIterable
-
contains
public boolean contains(boolean value)
- Specified by:
contains
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
containsAny
public boolean containsAny(boolean... source)
- Specified by:
containsAny
in interfaceBooleanIterable
-
containsAny
public boolean containsAny(BooleanIterable source)
- Specified by:
containsAny
in interfaceBooleanIterable
-
containsNone
public boolean containsNone(boolean... source)
- Specified by:
containsNone
in interfaceBooleanIterable
-
containsNone
public boolean containsNone(BooleanIterable source)
- Specified by:
containsNone
in interfaceBooleanIterable
-
each
public void each(BooleanProcedure procedure)
- Specified by:
each
in interfaceBooleanIterable
- Since:
- 7.0.
-
select
public BooleanIterable select(BooleanPredicate predicate)
- Specified by:
select
in interfaceBooleanIterable
-
reject
public BooleanIterable reject(BooleanPredicate predicate)
- Specified by:
reject
in interfaceBooleanIterable
-
collect
public <V> RichIterable<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceBooleanIterable
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNone
in interfaceBooleanIterable
-
count
public int count(BooleanPredicate predicate)
- Specified by:
count
in interfaceBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfy
in interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfy
in interfaceBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfy
in interfaceBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toList
in interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSet
in interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBag
in interfaceBooleanIterable
-
asLazy
public LazyBooleanIterable asLazy()
- Specified by:
asLazy
in interfaceBooleanIterable
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceBooleanIterable
-
reduce
public boolean reduce(BooleanBooleanToBooleanFunction accumulator)
- Specified by:
reduce
in interfaceBooleanIterable
-
reduceIfEmpty
public boolean reduceIfEmpty(BooleanBooleanToBooleanFunction accumulator, boolean defaultValue)
- Specified by:
reduceIfEmpty
in interfaceBooleanIterable
-
chunk
public RichIterable<BooleanIterable> chunk(int size)
- Specified by:
chunk
in interfaceBooleanIterable
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
booleanIterator
public BooleanIterator booleanIterator()
Must be called in a synchronized block.- Specified by:
booleanIterator
in interfaceBooleanIterable
-
-