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 boolean
allSatisfy(BooleanPredicate predicate)
boolean
anySatisfy(BooleanPredicate predicate)
BooleanIterator
booleanIterator()
boolean
containsAll(boolean... source)
boolean
containsAll(BooleanIterable source)
int
count(BooleanPredicate predicate)
void
each(BooleanProcedure procedure)
void
forEach(BooleanProcedure procedure)
boolean
isEmpty()
boolean
noneSatisfy(BooleanPredicate predicate)
boolean
notEmpty()
int
size()
boolean[]
toArray()
MutableBooleanBag
toBag()
MutableBooleanList
toList()
MutableBooleanSet
toSet()
-
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:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyBooleanIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyBooleanIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyBooleanIterable
-
count
public int count(BooleanPredicate predicate)
- Specified by:
count
in interfaceBooleanIterable
- Overrides:
count
in classAbstractLazyBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfy
in interfaceBooleanIterable
- Overrides:
anySatisfy
in classAbstractLazyBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfy
in interfaceBooleanIterable
- Overrides:
allSatisfy
in classAbstractLazyBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfy
in interfaceBooleanIterable
- Overrides:
noneSatisfy
in classAbstractLazyBooleanIterable
-
toArray
public boolean[] toArray()
- Specified by:
toArray
in interfaceBooleanIterable
- Overrides:
toArray
in classAbstractLazyBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toList
in interfaceBooleanIterable
- Overrides:
toList
in classAbstractLazyBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSet
in interfaceBooleanIterable
- Overrides:
toSet
in classAbstractLazyBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBag
in interfaceBooleanIterable
- Overrides:
toBag
in classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
- Specified by:
containsAll
in interfaceBooleanIterable
- Overrides:
containsAll
in classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAll
in interfaceBooleanIterable
- Overrides:
containsAll
in classAbstractLazyBooleanIterable
-
-