Class SelectLongIterable
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyLongIterable
org.eclipse.collections.impl.lazy.primitive.SelectLongIterable
- All Implemented Interfaces:
LazyLongIterable
,LongIterable
,PrimitiveIterable
public class SelectLongIterable extends AbstractLazyLongIterable
This file was automatically generated from template file selectPrimitiveIterable.stg.
-
Constructor Summary
Constructors Constructor Description SelectLongIterable(LongIterable delegate, LongPredicate predicate)
-
Method Summary
Modifier and Type Method Description boolean
allSatisfy(LongPredicate predicate)
Returns true if all of the elements in the LongIterable return true for the specified predicate, otherwise returns false.boolean
anySatisfy(LongPredicate predicate)
Returns true if any of the elements in the LongIterable return true for the specified predicate, otherwise returns false.boolean
containsAll(long... source)
Returns true if the all of the values specified in the source array are contained in the LongIterable, and false if they are not.boolean
containsAll(LongIterable source)
Returns true if the all of the values specified in the source LongIterable are contained in the LongIterable, and false if they are not.int
count(LongPredicate predicate)
Returns a count of the number of elements in the LongIterable that return true for the specified predicate.void
each(LongProcedure procedure)
A synonym for forEach.boolean
isEmpty()
Returns true if this iterable has zero items.LongIterator
longIterator()
Returns a primitive iterator that can be used to iterate over the LongIterable in an imperative style.boolean
noneSatisfy(LongPredicate predicate)
Returns true if none of the elements in the LongIterable 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.long[]
toArray()
Converts the LongIterable to a primitive long array.MutableLongBag
toBag()
Converts the LongIterable to a new MutableLongBag.MutableLongList
toList()
Converts the LongIterable to a new MutableLongList.MutableLongSet
toSet()
Converts the LongIterable to a new MutableLongSet.Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyLongIterable
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedArray, toSortedList, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.LongIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
longIterator
Description copied from interface:LongIterable
Returns a primitive iterator that can be used to iterate over the LongIterable in an imperative style. -
each
Description copied from interface:LongIterable
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 classAbstractLazyLongIterable
-
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 classAbstractLazyLongIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyLongIterable
-
count
Description copied from interface:LongIterable
Returns a count of the number of elements in the LongIterable that return true for the specified predicate.- Specified by:
count
in interfaceLongIterable
- Overrides:
count
in classAbstractLazyLongIterable
-
anySatisfy
Description copied from interface:LongIterable
Returns true if any of the elements in the LongIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfy
in interfaceLongIterable
- Overrides:
anySatisfy
in classAbstractLazyLongIterable
-
allSatisfy
Description copied from interface:LongIterable
Returns true if all of the elements in the LongIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfy
in interfaceLongIterable
- Overrides:
allSatisfy
in classAbstractLazyLongIterable
-
noneSatisfy
Description copied from interface:LongIterable
Returns true if none of the elements in the LongIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfy
in interfaceLongIterable
- Overrides:
noneSatisfy
in classAbstractLazyLongIterable
-
toArray
public long[] toArray()Description copied from interface:LongIterable
Converts the LongIterable to a primitive long array.- Specified by:
toArray
in interfaceLongIterable
- Overrides:
toArray
in classAbstractLazyLongIterable
-
containsAll
public boolean containsAll(long... source)Description copied from interface:LongIterable
Returns true if the all of the values specified in the source array are contained in the LongIterable, and false if they are not.- Specified by:
containsAll
in interfaceLongIterable
- Overrides:
containsAll
in classAbstractLazyLongIterable
-
containsAll
Description copied from interface:LongIterable
Returns true if the all of the values specified in the source LongIterable are contained in the LongIterable, and false if they are not.- Specified by:
containsAll
in interfaceLongIterable
- Overrides:
containsAll
in classAbstractLazyLongIterable
-
toList
Description copied from interface:LongIterable
Converts the LongIterable to a new MutableLongList.- Specified by:
toList
in interfaceLongIterable
- Overrides:
toList
in classAbstractLazyLongIterable
-
toSet
Description copied from interface:LongIterable
Converts the LongIterable to a new MutableLongSet.- Specified by:
toSet
in interfaceLongIterable
- Overrides:
toSet
in classAbstractLazyLongIterable
-
toBag
Description copied from interface:LongIterable
Converts the LongIterable to a new MutableLongBag.- Specified by:
toBag
in interfaceLongIterable
- Overrides:
toBag
in classAbstractLazyLongIterable
-