Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.lazy.primitive

public Class CollectBooleanIterable<T>

extends AbstractLazyBooleanIterable
Class Inheritance
Imports
java.util.Iterator, org.eclipse.collections.api.BooleanIterable, .LazyIterable, org.eclipse.collections.api.bag.primitive.MutableBooleanBag, org.eclipse.collections.api.block.function.primitive.BooleanFunction, org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate, org.eclipse.collections.api.block.procedure.Procedure2, org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure, org.eclipse.collections.api.factory.primitive.BooleanBags, .BooleanLists, .BooleanSets, org.eclipse.collections.api.iterator.BooleanIterator, org.eclipse.collections.api.list.primitive.MutableBooleanList, org.eclipse.collections.api.set.primitive.MutableBooleanSet

A CollectIntIterable is an iterable that transforms a source iterable using an IntFunction as it iterates.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final CollectBooleanIterable.BooleanFunctionToProcedure<T>
private final BooleanFunction<? super T>
private final LazyIterable<T>

Constructor Summary

AccessConstructor and Description
public
CollectBooleanIterable(LazyIterable<T> adapted, BooleanFunction<? super T> function)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.allSatisfy.

Implements org.eclipse.collections.api.BooleanIterable.allSatisfy.

Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.anySatisfy.

Implements org.eclipse.collections.api.BooleanIterable.anySatisfy.

Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.

public BooleanIterator
booleanIterator()

Implements org.eclipse.collections.api.BooleanIterable.booleanIterator.

Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.

public boolean
containsAll(boolean... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.containsAll.

Overrides default org.eclipse.collections.api.BooleanIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the BooleanIterable, and false if they are not.

public boolean
containsAll(BooleanIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.containsAll.

Overrides default org.eclipse.collections.api.BooleanIterable.containsAll.

Returns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.

public int
count(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.count.

Implements org.eclipse.collections.api.BooleanIterable.count.

Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.

public void
each(BooleanProcedure procedure)

Implements org.eclipse.collections.api.BooleanIterable.each.

A synonym for forEach.

public void
forEach(BooleanProcedure procedure)

Overrides default org.eclipse.collections.api.BooleanIterable.forEach.

Applies the BooleanProcedure to each element in the BooleanIterable.

public boolean
public boolean
noneSatisfy(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.noneSatisfy.

Overrides default org.eclipse.collections.api.BooleanIterable.noneSatisfy.

Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.

public boolean
public int
public boolean[]
public MutableBooleanBag
public MutableBooleanList
public MutableBooleanSet
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable:
appendStringappendStringappendStringasLazychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringrejectselecttaptoString

Field Detail

booleanFunctionToProcedureback to summary
private final CollectBooleanIterable.BooleanFunctionToProcedure<T> booleanFunctionToProcedure
functionback to summary
private final BooleanFunction<? super T> function
iterableback to summary
private final LazyIterable<T> iterable

Constructor Detail

CollectBooleanIterableback to summary
public CollectBooleanIterable(LazyIterable<T> adapted, BooleanFunction<? super T> function)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.allSatisfy.

Implements org.eclipse.collections.api.BooleanIterable.allSatisfy.

Doc from org.eclipse.collections.api.BooleanIterable.allSatisfy.

Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
anySatisfyback to summary
public boolean anySatisfy(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.anySatisfy.

Implements org.eclipse.collections.api.BooleanIterable.anySatisfy.

Doc from org.eclipse.collections.api.BooleanIterable.anySatisfy.

Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
booleanIteratorback to summary
public BooleanIterator booleanIterator()

Implements org.eclipse.collections.api.BooleanIterable.booleanIterator.

Doc from org.eclipse.collections.api.BooleanIterable.booleanIterator.

Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.

Annotations
@Override
containsAllback to summary
public boolean containsAll(boolean... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.containsAll.

Overrides default org.eclipse.collections.api.BooleanIterable.containsAll.

Doc from org.eclipse.collections.api.BooleanIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the BooleanIterable, and false if they are not.

Annotations
@Override
containsAllback to summary
public boolean containsAll(BooleanIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.containsAll.

Overrides default org.eclipse.collections.api.BooleanIterable.containsAll.

Doc from org.eclipse.collections.api.BooleanIterable.containsAll.

Returns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.

Annotations
@Override
countback to summary
public int count(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.count.

Implements org.eclipse.collections.api.BooleanIterable.count.

Doc from org.eclipse.collections.api.BooleanIterable.count.

Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.

Annotations
@Override
eachback to summary
public void each(BooleanProcedure procedure)

Implements org.eclipse.collections.api.BooleanIterable.each.

Doc from org.eclipse.collections.api.BooleanIterable.each.

A synonym for forEach.

Annotations
@Override
Since
7.0.
forEachback to summary
public void forEach(BooleanProcedure procedure)

Overrides default org.eclipse.collections.api.BooleanIterable.forEach.

Doc from org.eclipse.collections.api.BooleanIterable.forEach.

Applies the BooleanProcedure to each element in the BooleanIterable.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.isEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

Annotations
@Override
noneSatisfyback to summary
public boolean noneSatisfy(BooleanPredicate predicate)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.noneSatisfy.

Overrides default org.eclipse.collections.api.BooleanIterable.noneSatisfy.

Doc from org.eclipse.collections.api.BooleanIterable.noneSatisfy.

Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
notEmptyback to summary
public boolean notEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.notEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

Annotations
@Override
sizeback to summary
public int size()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.size.

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Doc from org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

Annotations
@Override
toArrayback to summary
public boolean[] toArray()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.toArray.

Implements org.eclipse.collections.api.BooleanIterable.toArray.

Doc from org.eclipse.collections.api.BooleanIterable.toArray.

Converts the BooleanIterable to a primitive boolean array.

Annotations
@Override
toBagback to summary
public MutableBooleanBag toBag()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.toBag.

Implements org.eclipse.collections.api.BooleanIterable.toBag.

Doc from org.eclipse.collections.api.BooleanIterable.toBag.

Converts the BooleanIterable to a new MutableBooleanBag.

Annotations
@Override
toListback to summary
public MutableBooleanList toList()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.toList.

Implements org.eclipse.collections.api.BooleanIterable.toList.

Doc from org.eclipse.collections.api.BooleanIterable.toList.

Converts the BooleanIterable to a new MutableBooleanList.

Annotations
@Override
toSetback to summary
public MutableBooleanSet toSet()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable.toSet.

Implements org.eclipse.collections.api.BooleanIterable.toSet.

Doc from org.eclipse.collections.api.BooleanIterable.toSet.

Converts the BooleanIterable to a new MutableBooleanSet.

Annotations
@Override
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class CollectBooleanIterable.BooleanFunctionToProcedure<T>

extends Object
implements Procedure2<T, BooleanProcedure>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.CollectBooleanIterable.BooleanFunctionToProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure2, java.io.Serializable, java.util.function.BiConsumer

Field Summary

Modifier and TypeField and Description
private final BooleanFunction<? super T>
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

functionback to summary
private final BooleanFunction<? super T> function
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

BooleanFunctionToProcedureback to summary
private BooleanFunctionToProcedure(BooleanFunction<? super T> function)

Method Detail

valueback to summary
public void value(T each, BooleanProcedure procedure)

Implements org.eclipse.collections.api.block.procedure.Procedure2.value.

Annotations
@Override