Class SelectBooleanIterable
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable
-
- org.eclipse.collections.impl.lazy.primitive.SelectBooleanIterable
-
- All Implemented Interfaces:
BooleanIterable
,LazyBooleanIterable
,PrimitiveIterable
public class SelectBooleanIterable extends AbstractLazyBooleanIterable
This file was automatically generated from template file selectPrimitiveIterable.stg.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SelectBooleanIterable.CountBooleanProcedure
private class
SelectBooleanIterable.IfBooleanProcedure
private static class
SelectBooleanIterable.SelectBooleanIterator
-
Field Summary
Fields Modifier and Type Field Description private BooleanIterable
delegate
private BooleanPredicate
predicate
-
Constructor Summary
Constructors Constructor Description SelectBooleanIterable(BooleanIterable delegate, BooleanPredicate predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allSatisfy(BooleanPredicate predicate)
Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.boolean
anySatisfy(BooleanPredicate predicate)
Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.BooleanIterator
booleanIterator()
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.boolean
containsAll(boolean... source)
Returns true if all of the values specified in the source array are contained in the BooleanIterable, and false if they are not.boolean
containsAll(BooleanIterable source)
Returns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.int
count(BooleanPredicate predicate)
Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.void
each(BooleanProcedure procedure)
A synonym for forEach.boolean
isEmpty()
Returns true if this iterable has zero items.boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.boolean[]
toArray()
Converts the BooleanIterable to a primitive boolean array.MutableBooleanBag
toBag()
Converts the BooleanIterable to a new MutableBooleanBag.MutableBooleanList
toList()
Converts the BooleanIterable to a new MutableBooleanList.MutableBooleanSet
toSet()
Converts the BooleanIterable to a new MutableBooleanSet.-
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, noneSatisfy, reject, select, tap, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, select, toArray
-
-
-
-
Field Detail
-
delegate
private final BooleanIterable delegate
-
predicate
private final BooleanPredicate predicate
-
-
Constructor Detail
-
SelectBooleanIterable
public SelectBooleanIterable(BooleanIterable delegate, BooleanPredicate predicate)
-
-
Method Detail
-
booleanIterator
public BooleanIterator booleanIterator()
Description copied from interface:BooleanIterable
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.
-
each
public void each(BooleanProcedure procedure)
Description copied from interface:BooleanIterable
A synonym for forEach.- Since:
- 7.0.
-
size
public int size()
Description copied from interface:PrimitiveIterable
Returns the number of items in this iterable.- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyBooleanIterable
-
isEmpty
public boolean isEmpty()
Description copied from interface:PrimitiveIterable
Returns true if this iterable has zero items.- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyBooleanIterable
-
notEmpty
public boolean notEmpty()
Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyBooleanIterable
-
count
public int count(BooleanPredicate predicate)
Description copied from interface:BooleanIterable
Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.- Specified by:
count
in interfaceBooleanIterable
- Overrides:
count
in classAbstractLazyBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
Description copied from interface:BooleanIterable
Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfy
in interfaceBooleanIterable
- Overrides:
anySatisfy
in classAbstractLazyBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
Description copied from interface:BooleanIterable
Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfy
in interfaceBooleanIterable
- Overrides:
allSatisfy
in classAbstractLazyBooleanIterable
-
toArray
public boolean[] toArray()
Description copied from interface:BooleanIterable
Converts the BooleanIterable to a primitive boolean array.- Specified by:
toArray
in interfaceBooleanIterable
- Overrides:
toArray
in classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
Description copied from interface:BooleanIterable
Returns true if all of the values specified in the source array are contained in the BooleanIterable, and false if they are not.- Specified by:
containsAll
in interfaceBooleanIterable
- Overrides:
containsAll
in classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
Description copied from interface:BooleanIterable
Returns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.- Specified by:
containsAll
in interfaceBooleanIterable
- Overrides:
containsAll
in classAbstractLazyBooleanIterable
-
toList
public MutableBooleanList toList()
Description copied from interface:BooleanIterable
Converts the BooleanIterable to a new MutableBooleanList.- Specified by:
toList
in interfaceBooleanIterable
- Overrides:
toList
in classAbstractLazyBooleanIterable
-
toSet
public MutableBooleanSet toSet()
Description copied from interface:BooleanIterable
Converts the BooleanIterable to a new MutableBooleanSet.- Specified by:
toSet
in interfaceBooleanIterable
- Overrides:
toSet
in classAbstractLazyBooleanIterable
-
toBag
public MutableBooleanBag toBag()
Description copied from interface:BooleanIterable
Converts the BooleanIterable to a new MutableBooleanBag.- Specified by:
toBag
in interfaceBooleanIterable
- Overrides:
toBag
in classAbstractLazyBooleanIterable
-
-