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

public abstract Class AbstractLazyLongIterable

extends Object
implements LazyLongIterable
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.LazyLongIterable, org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.PrimitiveIterable
Known Direct Subclasses
org.eclipse.collections.impl.lazy.primitive.CollectBooleanToLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectIntToLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectDoubleToLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectFloatToLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectLongToLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectShortToLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectByteToLongIterable, org.eclipse.collections.impl.lazy.primitive.CollectCharToLongIterable, org.eclipse.collections.impl.lazy.primitive.LazyLongIterableAdapter, org.eclipse.collections.impl.lazy.primitive.ReverseLongIterable, org.eclipse.collections.impl.lazy.primitive.SelectLongIterable, org.eclipse.collections.impl.lazy.primitive.TapLongIterable, org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongBooleanHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongByteHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongCharHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongDoubleHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongFloatHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongIntHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongObjectHashMap.KeysView, org.eclipse.collections.impl.map.mutable.primitive.LongShortHashMap.KeysView
Imports
org.eclipse.collections.api.LongIterable, .LazyBooleanIterable, .LazyByteIterable, .LazyCharIterable, .LazyDoubleIterable, .LazyFloatIterable, .LazyIntIterable, .LazyIterable, .LazyLongIterable, .LazyShortIterable, .RichIterable, org.eclipse.collections.api.bag.primitive.MutableLongBag, org.eclipse.collections.api.block.function.primitive.LongToObjectFunction, .LongToBooleanFunction, .LongToByteFunction, .LongToCharFunction, .LongToDoubleFunction, .LongToFloatFunction, .LongToIntFunction, .LongToLongFunction, .LongToShortFunction, .ObjectLongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, org.eclipse.collections.api.factory.primitive.LongBags, .LongLists, .LongSets, org.eclipse.collections.api.list.primitive.MutableLongList, org.eclipse.collections.api.set.primitive.MutableLongSet, org.eclipse.collections.impl.utility.internal.primitive.LongIterableIterate, org.eclipse.collections.impl.utility.primitive.LazyLongIterate, java.util.NoSuchElementException

This file was automatically generated from template file abstractLazyPrimitiveIterable.stg.
Since
5.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements org.eclipse.collections.api.LongIterable.allSatisfy.

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

public boolean
anySatisfy(LongPredicate predicate)

Implements org.eclipse.collections.api.LongIterable.anySatisfy.

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

public void
appendString(Appendable appendable)

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

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

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

public LazyLongIterable
asLazy()

Implements org.eclipse.collections.api.LongIterable.asLazy.

Returns a LazyLongIterable adapter wrapping the source LongIterable.

public double
public RichIterable<LongIterable>
chunk(int size)

Overrides default org.eclipse.collections.api.LongIterable.chunk.

Partitions elements in fixed size chunks.

public <V> LazyIterable<V>
collect(LongToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.LazyLongIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public LazyBooleanIterable
public LazyByteIterable
public LazyCharIterable
public LazyDoubleIterable
public LazyFloatIterable
public LazyIntIterable
public LazyLongIterable
public LazyShortIterable
public boolean
contains(long value)

Implements org.eclipse.collections.api.LongIterable.contains.

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

public boolean
containsAll(long... source)

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

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

public boolean
containsAll(LongIterable source)

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

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

public int
count(LongPredicate predicate)

Implements org.eclipse.collections.api.LongIterable.count.

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

public long
public <V> LazyIterable<V>
public <T> T
injectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.LongIterable.injectInto.

public boolean
isEmpty()

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

Returns true if this iterable has zero items.

public String
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 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 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 long
public long
public double
public long
public long
public boolean
noneSatisfy(LongPredicate predicate)

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

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

public boolean
notEmpty()

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

The English equivalent of !this.isEmpty()

public LazyLongIterable
reject(LongPredicate predicate)

Implements org.eclipse.collections.api.LazyLongIterable.reject.

Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.

public LazyLongIterable
select(LongPredicate predicate)

Implements org.eclipse.collections.api.LazyLongIterable.select.

Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.

public int
size()

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

Returns the number of items in this iterable.

public long
public LazyLongIterable
public long[]
toArray()

Implements org.eclipse.collections.api.LongIterable.toArray.

Converts the LongIterable to a primitive long array.

public MutableLongBag
toBag()

Implements org.eclipse.collections.api.LongIterable.toBag.

Converts the LongIterable to a new MutableLongBag.

public MutableLongList
toList()

Implements org.eclipse.collections.api.LongIterable.toList.

Converts the LongIterable to a new MutableLongList.

public MutableLongSet
toSet()

Implements org.eclipse.collections.api.LongIterable.toSet.

Converts the LongIterable to a new MutableLongSet.

public long[]
public MutableLongList
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

AbstractLazyLongIterableback to summary
public AbstractLazyLongIterable()

Method Detail

allSatisfyback to summary
public boolean allSatisfy(LongPredicate predicate)

Implements org.eclipse.collections.api.LongIterable.allSatisfy.

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

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

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

Implements org.eclipse.collections.api.LongIterable.anySatisfy.

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

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

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

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

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

Implements org.eclipse.collections.api.LongIterable.asLazy.

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

Returns a LazyLongIterable adapter wrapping the source LongIterable.

Annotations
@Override
averageback to summary
public double average()

Implements org.eclipse.collections.api.LongIterable.average.

Annotations
@Override
chunkback to summary
public RichIterable<LongIterable> chunk(int size)

Overrides default org.eclipse.collections.api.LongIterable.chunk.

Doc from org.eclipse.collections.api.LongIterable.chunk.

Partitions elements in fixed size chunks.

Annotations
@Override
collectback to summary
public <V> LazyIterable<V> collect(LongToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.LazyLongIterable.collect.

Doc from org.eclipse.collections.api.LongIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
collectBooleanback to summary
public LazyBooleanIterable collectBoolean(LongToBooleanFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectBoolean.

Annotations
@Override
Since
7.0
collectByteback to summary
public LazyByteIterable collectByte(LongToByteFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectByte.

Annotations
@Override
Since
7.0
collectCharback to summary
public LazyCharIterable collectChar(LongToCharFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectChar.

Annotations
@Override
Since
7.0
collectDoubleback to summary
public LazyDoubleIterable collectDouble(LongToDoubleFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectDouble.

Annotations
@Override
Since
7.0
collectFloatback to summary
public LazyFloatIterable collectFloat(LongToFloatFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectFloat.

Annotations
@Override
Since
7.0
collectIntback to summary
public LazyIntIterable collectInt(LongToIntFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectInt.

Annotations
@Override
Since
7.0
collectLongback to summary
public LazyLongIterable collectLong(LongToLongFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectLong.

Annotations
@Override
Since
7.0
collectShortback to summary
public LazyShortIterable collectShort(LongToShortFunction function)

Implements org.eclipse.collections.api.LazyLongIterable.collectShort.

Annotations
@Override
Since
7.0
containsback to summary
public boolean contains(long value)

Implements org.eclipse.collections.api.LongIterable.contains.

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

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

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

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

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

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

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

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

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

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

Annotations
@Override
countback to summary
public int count(LongPredicate predicate)

Implements org.eclipse.collections.api.LongIterable.count.

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

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

Annotations
@Override
detectIfNoneback to summary
public long detectIfNone(LongPredicate predicate, long ifNone)

Implements org.eclipse.collections.api.LongIterable.detectIfNone.

Annotations
@Override
flatCollectback to summary
public <V> LazyIterable<V> flatCollect(LongToObjectFunction<? extends Iterable<V>> function)

Implements org.eclipse.collections.api.LazyLongIterable.flatCollect.

injectIntoback to summary
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.LongIterable.injectInto.

Annotations
@Override
isEmptyback to summary
public boolean 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 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 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 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 long max()

Implements org.eclipse.collections.api.LongIterable.max.

Annotations
@Override
maxIfEmptyback to summary
public long maxIfEmpty(long ifEmpty)

Implements org.eclipse.collections.api.LongIterable.maxIfEmpty.

Annotations
@Override
medianback to summary
public double median()

Implements org.eclipse.collections.api.LongIterable.median.

Annotations
@Override
minback to summary
public long min()

Implements org.eclipse.collections.api.LongIterable.min.

Annotations
@Override
minIfEmptyback to summary
public long minIfEmpty(long ifEmpty)

Implements org.eclipse.collections.api.LongIterable.minIfEmpty.

Annotations
@Override
noneSatisfyback to summary
public boolean noneSatisfy(LongPredicate predicate)

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

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

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

Annotations
@Override
notEmptyback to summary
public boolean 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
rejectback to summary
public LazyLongIterable reject(LongPredicate predicate)

Implements org.eclipse.collections.api.LazyLongIterable.reject.

Doc from org.eclipse.collections.api.LongIterable.reject.

Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public LazyLongIterable select(LongPredicate predicate)

Implements org.eclipse.collections.api.LazyLongIterable.select.

Doc from org.eclipse.collections.api.LongIterable.select.

Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.

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

Implements org.eclipse.collections.api.LongIterable.sum.

Annotations
@Override
tapback to summary
public LazyLongIterable tap(LongProcedure procedure)

Implements org.eclipse.collections.api.LazyLongIterable.tap.

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

Implements org.eclipse.collections.api.LongIterable.toArray.

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

Converts the LongIterable to a primitive long array.

Annotations
@Override
toBagback to summary
public MutableLongBag toBag()

Implements org.eclipse.collections.api.LongIterable.toBag.

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

Converts the LongIterable to a new MutableLongBag.

Annotations
@Override
toListback to summary
public MutableLongList toList()

Implements org.eclipse.collections.api.LongIterable.toList.

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

Converts the LongIterable to a new MutableLongList.

Annotations
@Override
toSetback to summary
public MutableLongSet toSet()

Implements org.eclipse.collections.api.LongIterable.toSet.

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

Converts the LongIterable to a new MutableLongSet.

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

Implements org.eclipse.collections.api.LongIterable.toSortedArray.

Annotations
@Override
toSortedListback to summary
public MutableLongList toSortedList()

Implements org.eclipse.collections.api.LongIterable.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
org.eclipse.collections.impl.lazy.primitive back to summary

private final Class AbstractLazyLongIterable.LongMaxProcedure

extends Object
implements LongProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.AbstractLazyLongIterable.LongMaxProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.LongProcedure, java.io.Serializable, java.util.function.LongConsumer

Field Summary

Modifier and TypeField and Description
private long
private boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public long
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxback to summary
private long max
visitedOnceback to summary
private boolean visitedOnce

Constructor Detail

LongMaxProcedureback to summary
private LongMaxProcedure()

Method Detail

getValueback to summary
public long getValue()
valueback to summary
public void value(long each)

Implements org.eclipse.collections.api.block.procedure.primitive.LongProcedure.value.

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

private final Class AbstractLazyLongIterable.LongMinProcedure

extends Object
implements LongProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.AbstractLazyLongIterable.LongMinProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.LongProcedure, java.io.Serializable, java.util.function.LongConsumer

Field Summary

Modifier and TypeField and Description
private long
private boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public long
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

minback to summary
private long min
visitedOnceback to summary
private boolean visitedOnce

Constructor Detail

LongMinProcedureback to summary
private LongMinProcedure()

Method Detail

getValueback to summary
public long getValue()
valueback to summary
public void value(long each)

Implements org.eclipse.collections.api.block.procedure.primitive.LongProcedure.value.

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

private final Class AbstractLazyLongIterable.LongSumProcedure

extends Object
implements LongProcedure
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.lazy.primitive.AbstractLazyLongIterable.LongSumProcedure
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.primitive.LongProcedure, java.io.Serializable, java.util.function.LongConsumer

Field Summary

Modifier and TypeField and Description
private long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public long
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sumback to summary
private long sum

Constructor Detail

LongSumProcedureback to summary
private LongSumProcedure()

Method Detail

getValueback to summary
public long getValue()
valueback to summary
public void value(long each)

Implements org.eclipse.collections.api.block.procedure.primitive.LongProcedure.value.

Annotations
@Override