Class SynchronizedBooleanIterable
java.lang.Object
org.eclipse.collections.impl.primitive.SynchronizedBooleanIterable
- All Implemented Interfaces:
Serializable,BooleanIterable,PrimitiveIterable
A synchronized view of a BooleanIterable.
This file was automatically generated from template file synchronizedPrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(BooleanPredicate predicate) booleananySatisfy(BooleanPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()Must be called in a synchronized block.chunk(int size) <V> RichIterable<V>collect(BooleanToObjectFunction<? extends V> function) booleancontains(boolean value) booleancontainsAll(boolean... source) booleancontainsAll(BooleanIterable source) booleancontainsAny(boolean... source) booleancontainsAny(BooleanIterable source) booleancontainsNone(boolean... source) booleancontainsNone(BooleanIterable source) intcount(BooleanPredicate predicate) booleandetectIfNone(BooleanPredicate predicate, boolean ifNone) voideach(BooleanProcedure procedure) <T> TinjectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) booleannoneSatisfy(BooleanPredicate predicate) booleannotEmpty()static SynchronizedBooleanIterableof(BooleanIterable iterable) This method will take a BooleanIterable and wrap it directly in a SynchronizedBooleanIterable.static SynchronizedBooleanIterableof(BooleanIterable iterable, Object lock) This method will take a BooleanIterable and wrap it directly in a SynchronizedBooleanIterable.booleanreduce(BooleanBooleanToBooleanFunction accumulator) booleanreduceIfEmpty(BooleanBooleanToBooleanFunction accumulator, boolean defaultValue) reject(BooleanPredicate predicate) select(BooleanPredicate predicate) intsize()boolean[]toArray()boolean[]toArray(boolean[] target) toBag()toList()toSet()toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 Details
-
of
This method will take a BooleanIterable and wrap it directly in a SynchronizedBooleanIterable. -
of
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:
toArrayin interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target) - Specified by:
toArrayin interfaceBooleanIterable
-
contains
public boolean contains(boolean value) - Specified by:
containsin interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source) - Specified by:
containsAllin interfaceBooleanIterable
-
containsAll
- Specified by:
containsAllin interfaceBooleanIterable
-
containsAny
public boolean containsAny(boolean... source) - Specified by:
containsAnyin interfaceBooleanIterable
-
containsAny
- Specified by:
containsAnyin interfaceBooleanIterable
-
containsNone
public boolean containsNone(boolean... source) - Specified by:
containsNonein interfaceBooleanIterable
-
containsNone
- Specified by:
containsNonein interfaceBooleanIterable
-
each
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceBooleanIterable
-
reject
- Specified by:
rejectin interfaceBooleanIterable
-
collect
- Specified by:
collectin interfaceBooleanIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceBooleanIterable
-
count
- Specified by:
countin interfaceBooleanIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceBooleanIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
toList
- Specified by:
toListin interfaceBooleanIterable
-
toSet
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
- Specified by:
toBagin interfaceBooleanIterable
-
asLazy
- Specified by:
asLazyin interfaceBooleanIterable
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceBooleanIterable
-
reduce
- Specified by:
reducein interfaceBooleanIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceBooleanIterable
-
chunk
- Specified by:
chunkin interfaceBooleanIterable
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
booleanIterator
Must be called in a synchronized block.- Specified by:
booleanIteratorin interfaceBooleanIterable
-