Class ReverseBooleanIterable
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable
org.eclipse.collections.impl.lazy.primitive.ReverseBooleanIterable
- All Implemented Interfaces:
BooleanIterable
,LazyBooleanIterable
,PrimitiveIterable
public class ReverseBooleanIterable extends AbstractLazyBooleanIterable
This file was automatically generated from template file reversePrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
ReverseIterable
-
Constructor Summary
Constructors Constructor Description ReverseBooleanIterable(BooleanList newAdapted)
-
Method Summary
Modifier and Type Method Description static ReverseBooleanIterable
adapt(BooleanList booleanList)
LazyBooleanIterable
asLazy()
Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.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.void
each(BooleanProcedure procedure)
A synonym for forEach.boolean
isEmpty()
Returns true if this iterable has zero items.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.Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyBooleanIterable
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toString
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
-
adapt
-
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.
-
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
-
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
-
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
-
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
-
asLazy
Description copied from interface:BooleanIterable
Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.- Specified by:
asLazy
in interfaceBooleanIterable
- Overrides:
asLazy
in classAbstractLazyBooleanIterable
-