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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classReverseIntIterable.ReverseIntIterator
-
Constructor Summary
Constructors Constructor Description ReverseIntIterable(IntList newAdapted)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReverseIntIterableadapt(IntList intList)LazyIntIterableasLazy()Returns a LazyIntIterable adapter wrapping the source IntIterable.doubleaverage()booleancontains(int value)Returns true if the value is contained in the IntIterable, and false if it is not.booleancontainsAll(int... source)Returns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.booleancontainsAll(IntIterable source)Returns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.voideach(IntProcedure procedure)A synonym for forEach.IntIteratorintIterator()Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.booleanisEmpty()Returns true if this iterable has zero items.intmax()intmaxIfEmpty(int defaultValue)doublemedian()intmin()intminIfEmpty(int defaultValue)booleannotEmpty()The English equivalent of !this.isEmpty()intsize()Returns the number of items in this iterable.longsum()int[]toArray()Converts the IntIterable to a primitive int array.MutableIntBagtoBag()Converts the IntIterable to a new MutableIntBag.MutableIntListtoList()Converts the IntIterable to a new MutableIntList.MutableIntSettoSet()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, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray, toSortedList, toSortedListBy, toSortedListBy
-
-
-
-
Field Detail
-
adapted
private final IntList adapted
-
-
Constructor Detail
-
ReverseIntIterable
public ReverseIntIterable(IntList newAdapted)
-
-
Method Detail
-
adapt
public static ReverseIntIterable adapt(IntList intList)
-
intIterator
public IntIterator intIterator()
Description copied from interface:IntIterableReturns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.
-
each
public void each(IntProcedure procedure)
Description copied from interface:IntIterableA synonym for forEach.- Since:
- 7.0.
-
sum
public long sum()
- Specified by:
sumin interfaceIntIterable- Overrides:
sumin classAbstractLazyIntIterable
-
max
public int max()
- Specified by:
maxin interfaceIntIterable- Overrides:
maxin classAbstractLazyIntIterable
-
min
public int min()
- Specified by:
minin interfaceIntIterable- Overrides:
minin classAbstractLazyIntIterable
-
minIfEmpty
public int minIfEmpty(int defaultValue)
- Specified by:
minIfEmptyin interfaceIntIterable- Overrides:
minIfEmptyin classAbstractLazyIntIterable
-
maxIfEmpty
public int maxIfEmpty(int defaultValue)
- Specified by:
maxIfEmptyin interfaceIntIterable- Overrides:
maxIfEmptyin classAbstractLazyIntIterable
-
average
public double average()
- Specified by:
averagein interfaceIntIterable- Overrides:
averagein classAbstractLazyIntIterable
-
median
public double median()
- Specified by:
medianin interfaceIntIterable- Overrides:
medianin classAbstractLazyIntIterable
-
toSortedArray
public int[] toSortedArray()
- Specified by:
toSortedArrayin interfaceIntIterable- Overrides:
toSortedArrayin classAbstractLazyIntIterable
-
toArray
public int[] toArray()
Description copied from interface:IntIterableConverts the IntIterable to a primitive int array.- Specified by:
toArrayin interfaceIntIterable- Overrides:
toArrayin classAbstractLazyIntIterable
-
contains
public boolean contains(int value)
Description copied from interface:IntIterableReturns true if the value is contained in the IntIterable, and false if it is not.- Specified by:
containsin interfaceIntIterable- Overrides:
containsin classAbstractLazyIntIterable
-
containsAll
public boolean containsAll(int... source)
Description copied from interface:IntIterableReturns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.- Specified by:
containsAllin interfaceIntIterable- Overrides:
containsAllin classAbstractLazyIntIterable
-
containsAll
public boolean containsAll(IntIterable source)
Description copied from interface:IntIterableReturns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.- Specified by:
containsAllin interfaceIntIterable- Overrides:
containsAllin classAbstractLazyIntIterable
-
size
public int size()
Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyIntIterable
-
isEmpty
public boolean isEmpty()
Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyIntIterable
-
notEmpty
public boolean notEmpty()
Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyIntIterable
-
toList
public MutableIntList toList()
Description copied from interface:IntIterableConverts the IntIterable to a new MutableIntList.- Specified by:
toListin interfaceIntIterable- Overrides:
toListin classAbstractLazyIntIterable
-
toSet
public MutableIntSet toSet()
Description copied from interface:IntIterableConverts the IntIterable to a new MutableIntSet.- Specified by:
toSetin interfaceIntIterable- Overrides:
toSetin classAbstractLazyIntIterable
-
toBag
public MutableIntBag toBag()
Description copied from interface:IntIterableConverts the IntIterable to a new MutableIntBag.- Specified by:
toBagin interfaceIntIterable- Overrides:
toBagin classAbstractLazyIntIterable
-
asLazy
public LazyIntIterable asLazy()
Description copied from interface:IntIterableReturns a LazyIntIterable adapter wrapping the source IntIterable.- Specified by:
asLazyin interfaceIntIterable- Overrides:
asLazyin classAbstractLazyIntIterable
-
-