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 booleanallSatisfy(BooleanPredicate predicate)booleananySatisfy(BooleanPredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyBooleanIterableasLazy()BooleanIteratorbooleanIterator()Must be called in a synchronized block.RichIterable<BooleanIterable>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()StringmakeString()StringmakeString(String separator)StringmakeString(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)BooleanIterablereject(BooleanPredicate predicate)BooleanIterableselect(BooleanPredicate predicate)intsize()boolean[]toArray()boolean[]toArray(boolean[] target)MutableBooleanBagtoBag()MutableBooleanListtoList()MutableBooleanSettoSet()StringtoString()-
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:
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
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAllin interfaceBooleanIterable
-
containsAny
public boolean containsAny(boolean... source)
- Specified by:
containsAnyin interfaceBooleanIterable
-
containsAny
public boolean containsAny(BooleanIterable source)
- Specified by:
containsAnyin interfaceBooleanIterable
-
containsNone
public boolean containsNone(boolean... source)
- Specified by:
containsNonein interfaceBooleanIterable
-
containsNone
public boolean containsNone(BooleanIterable source)
- Specified by:
containsNonein interfaceBooleanIterable
-
each
public void each(BooleanProcedure procedure)
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
select
public BooleanIterable select(BooleanPredicate predicate)
- Specified by:
selectin interfaceBooleanIterable
-
reject
public BooleanIterable reject(BooleanPredicate predicate)
- Specified by:
rejectin interfaceBooleanIterable
-
collect
public <V> RichIterable<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceBooleanIterable
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNonein interfaceBooleanIterable
-
count
public int count(BooleanPredicate predicate)
- Specified by:
countin interfaceBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfyin interfaceBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toListin interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBagin interfaceBooleanIterable
-
asLazy
public LazyBooleanIterable 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
public boolean reduce(BooleanBooleanToBooleanFunction accumulator)
- Specified by:
reducein interfaceBooleanIterable
-
reduceIfEmpty
public boolean reduceIfEmpty(BooleanBooleanToBooleanFunction accumulator, boolean defaultValue)
- Specified by:
reduceIfEmptyin interfaceBooleanIterable
-
chunk
public RichIterable<BooleanIterable> chunk(int size)
- Specified by:
chunkin interfaceBooleanIterable
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
booleanIterator
public BooleanIterator booleanIterator()
Must be called in a synchronized block.- Specified by:
booleanIteratorin interfaceBooleanIterable
-
-