Class CollectBooleanIterable<T>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable
-
- org.eclipse.collections.impl.lazy.primitive.CollectBooleanIterable<T>
-
- All Implemented Interfaces:
BooleanIterable,LazyBooleanIterable,PrimitiveIterable
public class CollectBooleanIterable<T> extends AbstractLazyBooleanIterable
A CollectIntIterable is an iterable that transforms a source iterable using an IntFunction as it iterates.
-
-
Constructor Summary
Constructors Constructor Description CollectBooleanIterable(LazyIterable<T> adapted, BooleanFunction<? super T> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(BooleanPredicate predicate)booleananySatisfy(BooleanPredicate predicate)BooleanIteratorbooleanIterator()booleancontainsAll(boolean... source)booleancontainsAll(BooleanIterable source)intcount(BooleanPredicate predicate)voideach(BooleanProcedure procedure)voidforEach(BooleanProcedure procedure)booleanisEmpty()booleannoneSatisfy(BooleanPredicate predicate)booleannotEmpty()intsize()boolean[]toArray()MutableBooleanBagtoBag()MutableBooleanListtoList()MutableBooleanSettoSet()-
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable
appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, reject, select, tap, 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, containsAny, containsAny, containsNone, containsNone, flatCollect, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, select, toArray
-
-
-
-
Constructor Detail
-
CollectBooleanIterable
public CollectBooleanIterable(LazyIterable<T> adapted, BooleanFunction<? super T> function)
-
-
Method Detail
-
booleanIterator
public BooleanIterator booleanIterator()
-
forEach
public void forEach(BooleanProcedure procedure)
-
each
public void each(BooleanProcedure procedure)
- Since:
- 7.0.
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyBooleanIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyBooleanIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyBooleanIterable
-
count
public int count(BooleanPredicate predicate)
- Specified by:
countin interfaceBooleanIterable- Overrides:
countin classAbstractLazyBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfyin interfaceBooleanIterable- Overrides:
anySatisfyin classAbstractLazyBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfyin interfaceBooleanIterable- Overrides:
allSatisfyin classAbstractLazyBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfyin interfaceBooleanIterable- Overrides:
noneSatisfyin classAbstractLazyBooleanIterable
-
toArray
public boolean[] toArray()
- Specified by:
toArrayin interfaceBooleanIterable- Overrides:
toArrayin classAbstractLazyBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toListin interfaceBooleanIterable- Overrides:
toListin classAbstractLazyBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSetin interfaceBooleanIterable- Overrides:
toSetin classAbstractLazyBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBagin interfaceBooleanIterable- Overrides:
toBagin classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
- Specified by:
containsAllin interfaceBooleanIterable- Overrides:
containsAllin classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAllin interfaceBooleanIterable- Overrides:
containsAllin classAbstractLazyBooleanIterable
-
-