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 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.void
appendString(Appendable appendable)
Prints a string representation of this collection onto the givenAppendable
.void
appendString(Appendable appendable, String separator)
Prints a string representation of this collection onto the givenAppendable
.void
appendString(Appendable appendable, String start, String separator, String end)
Prints a string representation of this collection onto the givenAppendable
.BooleanIterator
booleanIterator()
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.boolean
contains(boolean value)
Returns true if the value is contained in the BooleanIterable, and false if it is not.boolean
containsAll(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.boolean
containsAll(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.int
count(BooleanPredicate predicate)
Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.boolean
detectIfNone(BooleanPredicate predicate, boolean ifNone)
void
each(BooleanProcedure procedure)
A synonym for forEach.<T> T
injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)
boolean
isEmpty()
Returns true if this iterable has zero items.String
makeString()
Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)
and defaulting the separator parameter to the characters", "
(comma and space).String
makeString(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).String
makeString(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.boolean
noneSatisfy(BooleanPredicate predicate)
Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.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.String
toString()
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, tap
Methods inherited from class java.lang.Object
equals, 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, flatCollect, reduce, reduceIfEmpty, reject, select, toArray
-
Constructor Details
-
Method Details
-
booleanIterator
Description copied from interface:BooleanIterable
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style. -
each
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
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
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
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
-
noneSatisfy
Description copied from interface:BooleanIterable
Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfy
in interfaceBooleanIterable
- Overrides:
noneSatisfy
in classAbstractLazyBooleanIterable
-
detectIfNone
- Specified by:
detectIfNone
in interfaceBooleanIterable
- Overrides:
detectIfNone
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
-
toString
Description copied from interface:PrimitiveIterable
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());
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractLazyBooleanIterable
- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
makeString
Description copied from interface:PrimitiveIterable
Returns a string representation of this collection by delegating toPrimitiveIterable.makeString(String)
and defaulting the separator parameter to the characters", "
(comma and space).- Specified by:
makeString
in interfacePrimitiveIterable
- Overrides:
makeString
in classAbstractLazyBooleanIterable
- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterable
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).- Specified by:
makeString
in interfacePrimitiveIterable
- Overrides:
makeString
in classAbstractLazyBooleanIterable
- Returns:
- a string representation of this collection.
-
makeString
Description copied from interface:PrimitiveIterable
Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.- Specified by:
makeString
in interfacePrimitiveIterable
- Overrides:
makeString
in classAbstractLazyBooleanIterable
- Returns:
- a string representation of this collection.
-
appendString
Description copied from interface:PrimitiveIterable
Prints a string representation of this collection onto the givenAppendable
. Prints the string returned byPrimitiveIterable.makeString()
.- Specified by:
appendString
in interfacePrimitiveIterable
- Overrides:
appendString
in classAbstractLazyBooleanIterable
-
appendString
Description copied from interface:PrimitiveIterable
Prints a string representation of this collection onto the givenAppendable
. Prints the string returned byPrimitiveIterable.makeString(String)
.- Specified by:
appendString
in interfacePrimitiveIterable
- Overrides:
appendString
in classAbstractLazyBooleanIterable
-
appendString
Description copied from interface:PrimitiveIterable
Prints a string representation of this collection onto the givenAppendable
. Prints the string returned byPrimitiveIterable.makeString(String, String, String)
.- Specified by:
appendString
in interfacePrimitiveIterable
- Overrides:
appendString
in classAbstractLazyBooleanIterable
-
contains
public boolean contains(boolean value)Description copied from interface:BooleanIterable
Returns true if the value is contained in the BooleanIterable, and false if it is not.- Specified by:
contains
in interfaceBooleanIterable
- Overrides:
contains
in classAbstractLazyBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)Description copied from interface:BooleanIterable
Returns 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:
containsAll
in interfaceBooleanIterable
- Overrides:
containsAll
in classAbstractLazyBooleanIterable
-
containsAll
Description copied from interface:BooleanIterable
Returns 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:
containsAll
in interfaceBooleanIterable
- Overrides:
containsAll
in classAbstractLazyBooleanIterable
-
toList
Description copied from interface:BooleanIterable
Converts the BooleanIterable to a new MutableBooleanList.- Specified by:
toList
in interfaceBooleanIterable
- Overrides:
toList
in classAbstractLazyBooleanIterable
-
toSet
Description copied from interface:BooleanIterable
Converts the BooleanIterable to a new MutableBooleanSet.- Specified by:
toSet
in interfaceBooleanIterable
- Overrides:
toSet
in classAbstractLazyBooleanIterable
-
toBag
Description copied from interface:BooleanIterable
Converts the BooleanIterable to a new MutableBooleanBag.- Specified by:
toBag
in interfaceBooleanIterable
- Overrides:
toBag
in classAbstractLazyBooleanIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)- Specified by:
injectInto
in interfaceBooleanIterable
- Overrides:
injectInto
in classAbstractLazyBooleanIterable
-