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
This file was automatically generated from template file reversePrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReverseIntIterableasLazy()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.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.toBag()Converts the IntIterable to a new MutableIntBag.toList()Converts the IntIterable to a new MutableIntList.toSet()Converts the IntIterable to a new MutableIntSet.int[]Methods inherited from class 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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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 Details
-
adapted
-
-
Constructor Details
-
ReverseIntIterable
-
-
Method Details
-
adapt
-
intIterator
Description copied from interface:IntIterableReturns a primitive iterator that can be used to iterate over the IntIterable in an imperative style. -
each
-
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
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
Description copied from interface:IntIterableConverts the IntIterable to a new MutableIntList.- Specified by:
toListin interfaceIntIterable- Overrides:
toListin classAbstractLazyIntIterable
-
toSet
Description copied from interface:IntIterableConverts the IntIterable to a new MutableIntSet.- Specified by:
toSetin interfaceIntIterable- Overrides:
toSetin classAbstractLazyIntIterable
-
toBag
Description copied from interface:IntIterableConverts the IntIterable to a new MutableIntBag.- Specified by:
toBagin interfaceIntIterable- Overrides:
toBagin classAbstractLazyIntIterable
-
asLazy
Description copied from interface:IntIterableReturns a LazyIntIterable adapter wrapping the source IntIterable.- Specified by:
asLazyin interfaceIntIterable- Overrides:
asLazyin classAbstractLazyIntIterable
-