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

public abstract Class AbstractLazyBooleanIterable

extends Object
implements LazyBooleanIterable
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.LazyBooleanIterable, org.eclipse.collections.api.BooleanIterable, org.eclipse.collections.api.PrimitiveIterable
Known Direct Subclasses
org.eclipse.collections.impl.lazy.primitive.CollectBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectBooleanToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectIntToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectLongToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectDoubleToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectFloatToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectShortToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectCharToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.CollectByteToBooleanIterable, org.eclipse.collections.impl.lazy.primitive.LazyBooleanIterableAdapter, org.eclipse.collections.impl.lazy.primitive.ReverseBooleanIterable, org.eclipse.collections.impl.lazy.primitive.SelectBooleanIterable, org.eclipse.collections.impl.lazy.primitive.TapBooleanIterable
Imports
org.eclipse.collections.api.BooleanIterable, .LazyBooleanIterable, .LazyByteIterable, .LazyCharIterable, .LazyDoubleIterable, .LazyFloatIterable, .LazyIntIterable, .LazyIterable, .LazyLongIterable, .LazyShortIterable, .RichIterable, org.eclipse.collections.api.bag.primitive.MutableBooleanBag, org.eclipse.collections.api.block.function.primitive.BooleanToObjectFunction, .BooleanToBooleanFunction, .BooleanToByteFunction, .BooleanToCharFunction, .BooleanToDoubleFunction, .BooleanToFloatFunction, .BooleanToIntFunction, .BooleanToLongFunction, .BooleanToShortFunction, .ObjectBooleanToObjectFunction, 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.list.primitive.MutableBooleanList, org.eclipse.collections.api.set.primitive.MutableBooleanSet, org.eclipse.collections.impl.utility.internal.primitive.BooleanIterableIterate, org.eclipse.collections.impl.utility.primitive.LazyBooleanIterate

This file was automatically generated from template file abstractLazyPrimitiveIterable.stg.
Since
5.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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)

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 void
appendString(Appendable appendable)

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

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String separator)

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

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public LazyBooleanIterable
asLazy()

Implements org.eclipse.collections.api.BooleanIterable.asLazy.

Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.

public RichIterable<BooleanIterable>
chunk(int size)

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

Partitions elements in fixed size chunks.

public <V> LazyIterable<V>
collect(BooleanToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public LazyBooleanIterable
public LazyByteIterable
public LazyCharIterable
public LazyDoubleIterable
public LazyFloatIterable
public LazyIntIterable
public LazyLongIterable
public LazyShortIterable
public boolean
contains(boolean value)

Implements org.eclipse.collections.api.BooleanIterable.contains.

Returns true if the value is contained in the BooleanIterable, and false if it is not.

public boolean
containsAll(boolean... source)

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 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)

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 boolean
public <V> LazyIterable<V>
public <T> T
injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.BooleanIterable.injectInto.

public boolean
isEmpty()

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

Returns true if this iterable has zero items.

public String
makeString()

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

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

public String
makeString(String separator)

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

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

public String
makeString(String start, String separator, String end)

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

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

public boolean
noneSatisfy(BooleanPredicate predicate)

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
notEmpty()

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

The English equivalent of !this.isEmpty()

public LazyBooleanIterable
reject(BooleanPredicate predicate)

Implements org.eclipse.collections.api.LazyBooleanIterable.reject.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.

public LazyBooleanIterable
select(BooleanPredicate predicate)

Implements org.eclipse.collections.api.LazyBooleanIterable.select.

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.

public int
size()

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

Returns the number of items in this iterable.

public LazyBooleanIterable
public boolean[]
toArray()

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

Converts the BooleanIterable to a primitive boolean array.

public MutableBooleanBag
toBag()

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

Converts the BooleanIterable to a new MutableBooleanBag.

public MutableBooleanList
toList()

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

Converts the BooleanIterable to a new MutableBooleanList.

public MutableBooleanSet
toSet()

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

Converts the BooleanIterable to a new MutableBooleanSet.

public String
toString()

Overrides java.lang.Object.toString.

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

AbstractLazyBooleanIterableback to summary
public AbstractLazyBooleanIterable()

Method Detail

allSatisfyback to summary
public boolean allSatisfy(BooleanPredicate predicate)

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)

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
appendStringback to summary
public void appendString(Appendable appendable)

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

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString().

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String separator)

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

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String).

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String, String, String).

Annotations
@Override
asLazyback to summary
public LazyBooleanIterable asLazy()

Implements org.eclipse.collections.api.BooleanIterable.asLazy.

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

Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.

Annotations
@Override
chunkback to summary
public RichIterable<BooleanIterable> chunk(int size)

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

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

Partitions elements in fixed size chunks.

Annotations
@Override
collectback to summary
public <V> LazyIterable<V> collect(BooleanToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collect.

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

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
collectBooleanback to summary
public LazyBooleanIterable collectBoolean(BooleanToBooleanFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectBoolean.

Annotations
@Override
Since
7.0
collectByteback to summary
public LazyByteIterable collectByte(BooleanToByteFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectByte.

Annotations
@Override
Since
7.0
collectCharback to summary
public LazyCharIterable collectChar(BooleanToCharFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectChar.

Annotations
@Override
Since
7.0
collectDoubleback to summary
public LazyDoubleIterable collectDouble(BooleanToDoubleFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectDouble.

Annotations
@Override
Since
7.0
collectFloatback to summary
public LazyFloatIterable collectFloat(BooleanToFloatFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectFloat.

Annotations
@Override
Since
7.0
collectIntback to summary
public LazyIntIterable collectInt(BooleanToIntFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectInt.

Annotations
@Override
Since
7.0
collectLongback to summary
public LazyLongIterable collectLong(BooleanToLongFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectLong.

Annotations
@Override
Since
7.0
collectShortback to summary
public LazyShortIterable collectShort(BooleanToShortFunction function)

Implements org.eclipse.collections.api.LazyBooleanIterable.collectShort.

Annotations
@Override
Since
7.0
containsback to summary
public boolean contains(boolean value)

Implements org.eclipse.collections.api.BooleanIterable.contains.

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

Returns true if the value is contained in the BooleanIterable, and false if it is not.

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

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 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)

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
detectIfNoneback to summary
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)

Implements org.eclipse.collections.api.BooleanIterable.detectIfNone.

Annotations
@Override
flatCollectback to summary
public <V> LazyIterable<V> flatCollect(BooleanToObjectFunction<? extends Iterable<V>> function)

Implements org.eclipse.collections.api.LazyBooleanIterable.flatCollect.

injectIntoback to summary
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.BooleanIterable.injectInto.

Annotations
@Override
isEmptyback to summary
public boolean 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
makeStringback to summary
public String makeString()

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

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

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

Annotations
@Override
makeStringback to summary
public String makeString(String separator)

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

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

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

Annotations
@Override
makeStringback to summary
public String makeString(String start, String separator, String end)

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

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

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

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

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 default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

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

The English equivalent of !this.isEmpty()

Annotations
@Override
rejectback to summary
public LazyBooleanIterable reject(BooleanPredicate predicate)

Implements org.eclipse.collections.api.LazyBooleanIterable.reject.

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

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public LazyBooleanIterable select(BooleanPredicate predicate)

Implements org.eclipse.collections.api.LazyBooleanIterable.select.

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

Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.

Annotations
@Override
sizeback to summary
public int 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
tapback to summary
public LazyBooleanIterable tap(BooleanProcedure procedure)

Implements org.eclipse.collections.api.LazyBooleanIterable.tap.

Annotations
@Override
toArrayback to summary
public boolean[] 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()

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()

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()

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

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

Converts the BooleanIterable to a new MutableBooleanSet.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

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

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
Annotations
@Override