Class LazyBooleanIterableAdapter
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable
org.eclipse.collections.impl.lazy.primitive.LazyBooleanIterableAdapter
- All Implemented Interfaces:
BooleanIterable,LazyBooleanIterable,PrimitiveIterable
public class LazyBooleanIterableAdapter extends AbstractLazyBooleanIterable
This file was automatically generated from template file lazyPrimitiveIterableAdapter.stg.
- Since:
- 3.0
-
Constructor Summary
Constructors Constructor Description LazyBooleanIterableAdapter(BooleanIterable delegate) -
Method Summary
Modifier and Type Method Description booleanallSatisfy(BooleanPredicate predicate)Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(BooleanPredicate predicate)Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.voidappendString(Appendable appendable)Prints a string representation of this collection onto the givenAppendable.voidappendString(Appendable appendable, String separator)Prints a string representation of this collection onto the givenAppendable.voidappendString(Appendable appendable, String start, String separator, String end)Prints a string representation of this collection onto the givenAppendable.BooleanIteratorbooleanIterator()Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.booleancontains(boolean value)Returns true if the value is contained in the BooleanIterable, and false if it is not.booleancontainsAll(boolean... source)Returns true if the all of the values specified in the source array are contained in the BooleanIterable, and false if they are not.booleancontainsAll(BooleanIterable source)Returns true if the all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.intcount(BooleanPredicate predicate)Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.booleandetectIfNone(BooleanPredicate predicate, boolean ifNone)voideach(BooleanProcedure procedure)A synonym for forEach.<T> TinjectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)booleanisEmpty()Returns true if this iterable has zero items.StringmakeString()Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)and defaulting the separator parameter to the characters", "(comma and space).StringmakeString(String separator)Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String, String, String)and defaulting the start and end parameters to""(the empty String).StringmakeString(String start, String separator, String end)Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.booleannoneSatisfy(BooleanPredicate predicate)Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.booleannotEmpty()The English equivalent of !this.isEmpty()intsize()Returns the number of items in this iterable.boolean[]toArray()Converts the BooleanIterable to a primitive boolean array.MutableBooleanBagtoBag()Converts the BooleanIterable to a new MutableBooleanBag.MutableBooleanListtoList()Converts the BooleanIterable to a new MutableBooleanList.MutableBooleanSettoSet()Converts the BooleanIterable to a new MutableBooleanSet.StringtoString()Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable
asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, reject, select, tapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.BooleanIterable
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reduce, reduceIfEmpty, reject, select, toArray
-
Constructor Details
-
Method Details
-
booleanIterator
Description copied from interface:BooleanIterableReturns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style. -
each
Description copied from interface:BooleanIterableA synonym for forEach.- Since:
- 7.0.
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyBooleanIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyBooleanIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyBooleanIterable
-
count
Description copied from interface:BooleanIterableReturns a count of the number of elements in the BooleanIterable that return true for the specified predicate.- Specified by:
countin interfaceBooleanIterable- Overrides:
countin classAbstractLazyBooleanIterable
-
anySatisfy
Description copied from interface:BooleanIterableReturns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceBooleanIterable- Overrides:
anySatisfyin classAbstractLazyBooleanIterable
-
allSatisfy
Description copied from interface:BooleanIterableReturns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceBooleanIterable- Overrides:
allSatisfyin classAbstractLazyBooleanIterable
-
noneSatisfy
Description copied from interface:BooleanIterableReturns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfyin interfaceBooleanIterable- Overrides:
noneSatisfyin classAbstractLazyBooleanIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceBooleanIterable- Overrides:
detectIfNonein classAbstractLazyBooleanIterable
-
toArray
public boolean[] toArray()Description copied from interface:BooleanIterableConverts the BooleanIterable to a primitive boolean array.- Specified by:
toArrayin interfaceBooleanIterable- Overrides:
toArrayin classAbstractLazyBooleanIterable
-
toString
Description copied from interface:PrimitiveIterableReturns 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());- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classAbstractLazyBooleanIterable- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)and defaulting the separator parameter to the characters", "(comma and space).- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyBooleanIterable- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection by delegating toPrimitiveIterable.makeString(String, String, String)and defaulting the start and end parameters to""(the empty String).- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyBooleanIterable- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterableReturns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.- Specified by:
makeStringin interfacePrimitiveIterable- Overrides:
makeStringin classAbstractLazyBooleanIterable- Returns:
- a string representation of this collection.
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString().- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyBooleanIterable
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String).- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyBooleanIterable
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String, String, String).- Specified by:
appendStringin interfacePrimitiveIterable- Overrides:
appendStringin classAbstractLazyBooleanIterable
-
contains
public boolean contains(boolean value)Description copied from interface:BooleanIterableReturns true if the value is contained in the BooleanIterable, and false if it is not.- Specified by:
containsin interfaceBooleanIterable- Overrides:
containsin classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)Description copied from interface:BooleanIterableReturns true if the all of the values specified in the source array are contained in the BooleanIterable, and false if they are not.- Specified by:
containsAllin interfaceBooleanIterable- Overrides:
containsAllin classAbstractLazyBooleanIterable
-
containsAll
Description copied from interface:BooleanIterableReturns true if the all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.- Specified by:
containsAllin interfaceBooleanIterable- Overrides:
containsAllin classAbstractLazyBooleanIterable
-
toList
Description copied from interface:BooleanIterableConverts the BooleanIterable to a new MutableBooleanList.- Specified by:
toListin interfaceBooleanIterable- Overrides:
toListin classAbstractLazyBooleanIterable
-
toSet
Description copied from interface:BooleanIterableConverts the BooleanIterable to a new MutableBooleanSet.- Specified by:
toSetin interfaceBooleanIterable- Overrides:
toSetin classAbstractLazyBooleanIterable
-
toBag
Description copied from interface:BooleanIterableConverts the BooleanIterable to a new MutableBooleanBag.- Specified by:
toBagin interfaceBooleanIterable- Overrides:
toBagin classAbstractLazyBooleanIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceBooleanIterable- Overrides:
injectIntoin classAbstractLazyBooleanIterable
-