Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.lazy.primitive

public Class ReverseIntIterable

extends AbstractLazyIntIterable
Class Inheritance
Imports
java.util.NoSuchElementException, org.eclipse.collections.api.IntIterable, .LazyIntIterable, org.eclipse.collections.api.bag.primitive.MutableIntBag, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.factory.primitive.IntBags, .IntLists, .IntSets, org.eclipse.collections.api.iterator.IntIterator, org.eclipse.collections.api.list.primitive.IntList, .MutableIntList, org.eclipse.collections.api.set.primitive.MutableIntSet, org.eclipse.collections.impl.lazy.ReverseIterable

This file was automatically generated from template file reversePrimitiveIterable.stg.
Since
5.0.
See Also
ReverseIterable

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private final IntList

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ReverseIntIterable
adapt(IntList intList)

public LazyIntIterable
asLazy()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.asLazy.

Implements org.eclipse.collections.api.IntIterable.asLazy.

Returns a LazyIntIterable adapter wrapping the source IntIterable.

public double
public boolean
contains(int value)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.contains.

Implements org.eclipse.collections.api.IntIterable.contains.

Returns true if the value is contained in the IntIterable, and false if it is not.

public boolean
containsAll(int... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.containsAll.

Overrides default org.eclipse.collections.api.IntIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.

public boolean
containsAll(IntIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.containsAll.

Overrides default org.eclipse.collections.api.IntIterable.containsAll.

Returns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.

public void
each(IntProcedure procedure)

Implements org.eclipse.collections.api.IntIterable.each.

A synonym for forEach.

public IntIterator
intIterator()

Implements org.eclipse.collections.api.IntIterable.intIterator.

Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.

public boolean
public int
public int
public double
public int
public int
public boolean
public int
public long
public int[]
public MutableIntBag
public MutableIntList
public MutableIntSet
public int[]
Inherited from org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable:
allSatisfyanySatisfyappendStringappendStringappendStringchunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcountdetectIfNoneflatCollectinjectIntomakeStringmakeStringmakeStringnoneSatisfyrejectselecttaptoSortedListtoString

Field Detail

adaptedback to summary
private final IntList adapted

Constructor Detail

ReverseIntIterableback to summary
public ReverseIntIterable(IntList newAdapted)

Method Detail

adaptback to summary
public static ReverseIntIterable adapt(IntList intList)
asLazyback to summary
public LazyIntIterable asLazy()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.asLazy.

Implements org.eclipse.collections.api.IntIterable.asLazy.

Doc from org.eclipse.collections.api.IntIterable.asLazy.

Returns a LazyIntIterable adapter wrapping the source IntIterable.

Annotations
@Override
averageback to summary
public double average()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.average.

Implements org.eclipse.collections.api.IntIterable.average.

Annotations
@Override
containsback to summary
public boolean contains(int value)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.contains.

Implements org.eclipse.collections.api.IntIterable.contains.

Doc from org.eclipse.collections.api.IntIterable.contains.

Returns true if the value is contained in the IntIterable, and false if it is not.

Annotations
@Override
containsAllback to summary
public boolean containsAll(int... source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.containsAll.

Overrides default org.eclipse.collections.api.IntIterable.containsAll.

Doc from org.eclipse.collections.api.IntIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the IntIterable, and false if they are not.

Annotations
@Override
containsAllback to summary
public boolean containsAll(IntIterable source)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.containsAll.

Overrides default org.eclipse.collections.api.IntIterable.containsAll.

Doc from org.eclipse.collections.api.IntIterable.containsAll.

Returns true if all of the values specified in the source IntIterable are contained in the IntIterable, and false if they are not.

Annotations
@Override
eachback to summary
public void each(IntProcedure procedure)

Implements org.eclipse.collections.api.IntIterable.each.

Doc from org.eclipse.collections.api.IntIterable.each.

A synonym for forEach.

Annotations
@Override
Since
7.0.
intIteratorback to summary
public IntIterator intIterator()

Implements org.eclipse.collections.api.IntIterable.intIterator.

Doc from org.eclipse.collections.api.IntIterable.intIterator.

Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.isEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

Annotations
@Override
maxback to summary
public int max()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.max.

Implements org.eclipse.collections.api.IntIterable.max.

Annotations
@Override
maxIfEmptyback to summary
public int maxIfEmpty(int defaultValue)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.maxIfEmpty.

Implements org.eclipse.collections.api.IntIterable.maxIfEmpty.

Annotations
@Override
medianback to summary
public double median()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.median.

Implements org.eclipse.collections.api.IntIterable.median.

Annotations
@Override
minback to summary
public int min()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.min.

Implements org.eclipse.collections.api.IntIterable.min.

Annotations
@Override
minIfEmptyback to summary
public int minIfEmpty(int defaultValue)

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.minIfEmpty.

Implements org.eclipse.collections.api.IntIterable.minIfEmpty.

Annotations
@Override
notEmptyback to summary
public boolean notEmpty()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.notEmpty.

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

Doc from org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

Annotations
@Override
sizeback to summary
public int size()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.size.

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Doc from org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

Annotations
@Override
sumback to summary
public long sum()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.sum.

Implements org.eclipse.collections.api.IntIterable.sum.

Annotations
@Override
toArrayback to summary
public int[] toArray()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.toArray.

Implements org.eclipse.collections.api.IntIterable.toArray.

Doc from org.eclipse.collections.api.IntIterable.toArray.

Converts the IntIterable to a primitive int array.

Annotations
@Override
toBagback to summary
public MutableIntBag toBag()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.toBag.

Implements org.eclipse.collections.api.IntIterable.toBag.

Doc from org.eclipse.collections.api.IntIterable.toBag.

Converts the IntIterable to a new MutableIntBag.

Annotations
@Override
toListback to summary
public MutableIntList toList()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.toList.

Implements org.eclipse.collections.api.IntIterable.toList.

Doc from org.eclipse.collections.api.IntIterable.toList.

Converts the IntIterable to a new MutableIntList.

Annotations
@Override
toSetback to summary
public MutableIntSet toSet()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.toSet.

Implements org.eclipse.collections.api.IntIterable.toSet.

Doc from org.eclipse.collections.api.IntIterable.toSet.

Converts the IntIterable to a new MutableIntSet.

Annotations
@Override
toSortedArrayback to summary
public int[] toSortedArray()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.toSortedArray.

Implements org.eclipse.collections.api.IntIterable.toSortedArray.

Annotations
@Override
org.eclipse.collections.impl.lazy.primitive back to summary

private Class ReverseIntIterable.ReverseIntIterator

extends Object
implements IntIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.ReverseIntIterable.ReverseIntIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.IntIterator

Field Summary

Modifier and TypeField and Description
private int
currentIndex

Index of element to be returned by subsequent call to next.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentIndexback to summary
private int currentIndex

Index of element to be returned by subsequent call to next.

Constructor Detail

ReverseIntIteratorback to summary
private ReverseIntIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.eclipse.collections.api.iterator.IntIterator.hasNext.

Annotations
@Override
nextback to summary
public int next()

Implements org.eclipse.collections.api.iterator.IntIterator.next.

Annotations
@Override