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

public Class LazyIntIterableAdapter

extends AbstractLazyIntIterable
Class Inheritance
Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.bag.primitive.MutableIntBag, org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.iterator.IntIterator, org.eclipse.collections.api.list.primitive.MutableIntList, org.eclipse.collections.api.set.primitive.MutableIntSet

This file was automatically generated from template file lazyPrimitiveIterableAdapter.stg.
Since
3.0

Field Summary

Modifier and TypeField and Description
private final IntIterable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.allSatisfy.

Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.anySatisfy.

Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

public void
appendString(Appendable appendable)

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

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

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String separator)

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

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

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String start, String separator, String end)

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

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

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 int
count(IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.count.

Returns a count of the number of elements in the IntIterable that return true for the specified predicate.

public int
public void
each(IntProcedure procedure)

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

A synonym for forEach.

public <T> T
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 String
makeString()

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

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

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

public String
makeString(String separator)

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

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

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

public String
makeString(String start, String separator, String end)

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

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

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

public int
public int
public double
public int
public int
public boolean
noneSatisfy(IntPredicate predicate)

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

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

Returns true if none of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

public boolean
public int
public long
public int[]
public MutableIntBag
public MutableIntList
public MutableIntSet
public int[]
public MutableIntList
public String
toString()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.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 org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable:
asLazychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortflatCollectrejectselecttap

Field Detail

delegateback to summary
private final IntIterable delegate

Constructor Detail

LazyIntIterableAdapterback to summary
public LazyIntIterableAdapter(IntIterable delegate)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.allSatisfy.

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

Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
anySatisfyback to summary
public boolean anySatisfy(IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.anySatisfy.

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

Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable)

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

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

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString().

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String separator)

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

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

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String).

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String start, String separator, String end)

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

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

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

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String, String, String).

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
countback to summary
public int count(IntPredicate predicate)

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

Implements org.eclipse.collections.api.IntIterable.count.

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

Returns a count of the number of elements in the IntIterable that return true for the specified predicate.

Annotations
@Override
detectIfNoneback to summary
public int detectIfNone(IntPredicate predicate, int ifNone)

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

Implements org.eclipse.collections.api.IntIterable.detectIfNone.

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.
injectIntoback to summary
public <T> T injectInto(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function)

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

Implements org.eclipse.collections.api.IntIterable.injectInto.

Annotations
@Override
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
makeStringback to summary
public String makeString()

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

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

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

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

Annotations
@Override
makeStringback to summary
public String makeString(String separator)

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

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

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

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

Annotations
@Override
makeStringback to summary
public String makeString(String start, String separator, String end)

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

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

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

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

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
noneSatisfyback to summary
public boolean noneSatisfy(IntPredicate predicate)

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

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

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

Returns true if none of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

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
toSortedListback to summary
public MutableIntList toSortedList()

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

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.eclipse.collections.impl.lazy.primitive.AbstractLazyIntIterable.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