Class ReverseIntIterable
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable
org.eclipse.collections.impl.lazy.primitive.ReverseIntIterable
- All Implemented Interfaces:
IntIterable
,LazyIntIterable
,PrimitiveIterable
public class ReverseIntIterable extends AbstractLazyIntIterable
This file was automatically generated from template file reversePrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
ReverseIterable
-
Constructor Summary
Constructors Constructor Description ReverseIntIterable(IntList newAdapted)
-
Method Summary
Modifier and Type Method Description static ReverseIntIterable
adapt(IntList intList)
LazyIntIterable
asLazy()
Returns a LazyIntIterable adapter wrapping the source IntIterable.double
average()
boolean
contains(int value)
Returns true if the value is contained in the IntIterable, and false if it is not.boolean
containsAll(int... source)
Returns true if the all of the values specified in the source array are contained in the IntIterable, and false if they are not.boolean
containsAll(IntIterable source)
Returns true if the all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.void
each(IntProcedure procedure)
A synonym for forEach.IntIterator
intIterator()
Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.boolean
isEmpty()
Returns true if this iterable has zero items.int
max()
int
maxIfEmpty(int defaultValue)
double
median()
int
min()
int
minIfEmpty(int defaultValue)
boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.long
sum()
int[]
toArray()
Converts the IntIterable to a primitive int array.MutableIntBag
toBag()
Converts the IntIterable to a new MutableIntBag.MutableIntList
toList()
Converts the IntIterable to a new MutableIntList.MutableIntSet
toSet()
Converts the IntIterable to a new MutableIntSet.int[]
toSortedArray()
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable
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, 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.IntIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
adapt
-
intIterator
Description copied from interface:IntIterable
Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style. -
each
Description copied from interface:IntIterable
A synonym for forEach.- Since:
- 7.0.
-
sum
public long sum()- Specified by:
sum
in interfaceIntIterable
- Overrides:
sum
in classAbstractLazyIntIterable
-
max
public int max()- Specified by:
max
in interfaceIntIterable
- Overrides:
max
in classAbstractLazyIntIterable
-
min
public int min()- Specified by:
min
in interfaceIntIterable
- Overrides:
min
in classAbstractLazyIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue)- Specified by:
minIfEmpty
in interfaceIntIterable
- Overrides:
minIfEmpty
in classAbstractLazyIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue)- Specified by:
maxIfEmpty
in interfaceIntIterable
- Overrides:
maxIfEmpty
in classAbstractLazyIntIterable
-
average
public double average()- Specified by:
average
in interfaceIntIterable
- Overrides:
average
in classAbstractLazyIntIterable
-
median
public double median()- Specified by:
median
in interfaceIntIterable
- Overrides:
median
in classAbstractLazyIntIterable
-
toSortedArray
public int[] toSortedArray()- Specified by:
toSortedArray
in interfaceIntIterable
- Overrides:
toSortedArray
in classAbstractLazyIntIterable
-
toArray
public int[] toArray()Description copied from interface:IntIterable
Converts the IntIterable to a primitive int array.- Specified by:
toArray
in interfaceIntIterable
- Overrides:
toArray
in classAbstractLazyIntIterable
-
contains
public boolean contains(int value)Description copied from interface:IntIterable
Returns true if the value is contained in the IntIterable, and false if it is not.- Specified by:
contains
in interfaceIntIterable
- Overrides:
contains
in classAbstractLazyIntIterable
-
containsAll
public boolean containsAll(int... source)Description copied from interface:IntIterable
Returns true if the all of the values specified in the source array are contained in the IntIterable, and false if they are not.- Specified by:
containsAll
in interfaceIntIterable
- Overrides:
containsAll
in classAbstractLazyIntIterable
-
containsAll
Description copied from interface:IntIterable
Returns true if the all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.- Specified by:
containsAll
in interfaceIntIterable
- Overrides:
containsAll
in classAbstractLazyIntIterable
-
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 classAbstractLazyIntIterable
-
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 classAbstractLazyIntIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyIntIterable
-
toList
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntList.- Specified by:
toList
in interfaceIntIterable
- Overrides:
toList
in classAbstractLazyIntIterable
-
toSet
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntSet.- Specified by:
toSet
in interfaceIntIterable
- Overrides:
toSet
in classAbstractLazyIntIterable
-
toBag
Description copied from interface:IntIterable
Converts the IntIterable to a new MutableIntBag.- Specified by:
toBag
in interfaceIntIterable
- Overrides:
toBag
in classAbstractLazyIntIterable
-
asLazy
Description copied from interface:IntIterable
Returns a LazyIntIterable adapter wrapping the source IntIterable.- Specified by:
asLazy
in interfaceIntIterable
- Overrides:
asLazy
in classAbstractLazyIntIterable
-