Top Description Constructors Methods
org.eclipse.collections.impl.primitive

public abstract Class AbstractIntIterable

extends Object
implements IntIterable
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.PrimitiveIterable
Known Direct Subclasses
org.eclipse.collections.impl.set.primitive.AbstractIntSet, org.eclipse.collections.impl.string.immutable.CodePointAdapter, org.eclipse.collections.impl.string.immutable.CodePointList, org.eclipse.collections.impl.bag.mutable.primitive.IntHashBag, org.eclipse.collections.impl.list.mutable.primitive.IntArrayList, org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableIntValuesMap
Imports
java.util.Arrays, org.eclipse.collections.api.IntIterable, .LazyIntIterable, org.eclipse.collections.api.bag.primitive.MutableIntBag, org.eclipse.collections.api.factory.primitive.IntBags, .IntLists, .IntSets, org.eclipse.collections.api.list.primitive.MutableIntList, org.eclipse.collections.api.set.primitive.MutableIntSet, org.eclipse.collections.impl.lazy.primitive.LazyIntIterableAdapter

This file was automatically generated from template file abstractPrimitiveIterable.stg.
Since
6.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public LazyIntIterable
asLazy()

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

Returns a LazyIntIterable adapter wrapping the source IntIterable.

public double
public int
public double
public int
public MutableIntBag
toBag()

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

Converts the IntIterable to a new MutableIntBag.

public MutableIntList
toList()

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

Converts the IntIterable to a new MutableIntList.

public MutableIntSet
toSet()

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

Converts the IntIterable to a new MutableIntSet.

public int[]
public MutableIntList
public String
toString()

Overrides java.lang.Object.toString.

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

AbstractIntIterableback to summary
public AbstractIntIterable()

Method Detail

asLazyback to summary
public LazyIntIterable 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()

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

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

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

Annotations
@Override
medianback to summary
public double median()

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

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

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

Annotations
@Override
toBagback to summary
public MutableIntBag 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()

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()

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()

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

Annotations
@Override
toSortedListback to summary
public MutableIntList toSortedList()

Implements org.eclipse.collections.api.IntIterable.toSortedList.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

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

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
Annotations
@Override