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

public Class SelectBooleanIterable

extends AbstractLazyBooleanIterable
Class Inheritance
Imports
java.util.NoSuchElementException, org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.bag.primitive.MutableBooleanBag, org.eclipse.collections.api.block.predicate.primitive.BooleanPredicate, 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

This file was automatically generated from template file selectPrimitiveIterable.stg.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private static class

Field Summary

Modifier and TypeField and Description
private final BooleanIterable
private final BooleanPredicate

Constructor Summary

AccessConstructor and Description
public

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 boolean
public boolean
public int
public boolean[]
public MutableBooleanBag
public MutableBooleanList
public MutableBooleanSet
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable:
appendStringappendStringappendStringasLazychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainsdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringnoneSatisfyrejectselecttaptoString

Field Detail

delegateback to summary
private final BooleanIterable delegate
predicateback to summary
private final BooleanPredicate predicate

Constructor Detail

SelectBooleanIterableback to summary
public SelectBooleanIterable(BooleanIterable delegate, BooleanPredicate predicate)

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.
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
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 SelectBooleanIterable.CountBooleanProcedure

extends Object
implements BooleanProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectBooleanIterable.CountBooleanProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private int
private final BooleanPredicate
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

counterback to summary
private int counter
predicateback to summary
private final BooleanPredicate predicate
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

CountBooleanProcedureback to summary
private CountBooleanProcedure(BooleanPredicate predicate)

Method Detail

getCountback to summary
public int getCount()
valueback to summary
public void value(boolean each)

Implements org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure.value.

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

private final Class SelectBooleanIterable.IfBooleanProcedure

extends Object
implements BooleanProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectBooleanIterable.IfBooleanProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final BooleanProcedure
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

procedureback to summary
private final BooleanProcedure procedure
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

IfBooleanProcedureback to summary
private IfBooleanProcedure(BooleanProcedure procedure)

Method Detail

valueback to summary
public void value(boolean each)

Implements org.eclipse.collections.api.block.procedure.primitive.BooleanProcedure.value.

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

private final Class SelectBooleanIterable.SelectBooleanIterator

extends Object
implements BooleanIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.SelectBooleanIterable.SelectBooleanIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.BooleanIterator

Field Summary

Modifier and TypeField and Description
private final BooleanIterator
private boolean
private final BooleanPredicate
private boolean

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

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

Field Detail

iteratorback to summary
private final BooleanIterator iterator
nextback to summary
private boolean next
predicateback to summary
private final BooleanPredicate predicate
verifiedHasNextback to summary
private boolean verifiedHasNext

Constructor Detail

SelectBooleanIteratorback to summary
private SelectBooleanIterator(BooleanIterable iterable, BooleanPredicate predicate)
SelectBooleanIteratorback to summary
private SelectBooleanIterator(BooleanIterator iterator, BooleanPredicate predicate)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.eclipse.collections.api.iterator.BooleanIterator.hasNext.

Annotations
@Override
nextback to summary
public boolean next()

Implements org.eclipse.collections.api.iterator.BooleanIterator.next.

Annotations
@Override