LazyLongIterable
, LongIterable
, PrimitiveIterable
public class CollectLongIterable<T> extends AbstractLazyLongIterable
Constructor | Description |
---|---|
CollectLongIterable(LazyIterable<T> adapted,
LongFunction<? super T> function) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(LongPredicate predicate) |
Returns true if all of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(LongPredicate predicate) |
Returns true if any of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
containsAll(long... source) |
Returns true if the all of the values specified in the source array are contained
in the LongIterable, and false if they are not.
|
boolean |
containsAll(LongIterable source) |
Returns true if the all of the values specified in the source LongIterable are contained
in the LongIterable, and false if they are not.
|
int |
count(LongPredicate predicate) |
Returns a count of the number of elements in the LongIterable that return true for the
specified predicate.
|
void |
each(LongProcedure procedure) |
A synonym for forEach.
|
void |
forEach(LongProcedure procedure) |
Applies the LongProcedure to each element in the LongIterable.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
LongIterator |
longIterator() |
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
boolean |
noneSatisfy(LongPredicate predicate) |
Returns true if none of the elements in the LongIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
long[] |
toArray() |
Converts the LongIterable to a primitive long array.
|
MutableLongBag |
toBag() |
Converts the LongIterable to a new MutableLongBag.
|
MutableLongList |
toList() |
Converts the LongIterable to a new MutableLongList.
|
MutableLongSet |
toSet() |
Converts the LongIterable to a new MutableLongSet.
|
long[] |
toSortedArray() |
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedList, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public CollectLongIterable(LazyIterable<T> adapted, LongFunction<? super T> function)
public LongIterator longIterator()
LongIterable
public void forEach(LongProcedure procedure)
LongIterable
forEach
in interface LongIterable
forEach
in class AbstractLazyLongIterable
public void each(LongProcedure procedure)
LongIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyLongIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyLongIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyLongIterable
public int count(LongPredicate predicate)
LongIterable
count
in interface LongIterable
count
in class AbstractLazyLongIterable
public boolean anySatisfy(LongPredicate predicate)
LongIterable
anySatisfy
in interface LongIterable
anySatisfy
in class AbstractLazyLongIterable
public boolean allSatisfy(LongPredicate predicate)
LongIterable
allSatisfy
in interface LongIterable
allSatisfy
in class AbstractLazyLongIterable
public boolean noneSatisfy(LongPredicate predicate)
LongIterable
noneSatisfy
in interface LongIterable
noneSatisfy
in class AbstractLazyLongIterable
public long[] toArray()
LongIterable
toArray
in interface LongIterable
toArray
in class AbstractLazyLongIterable
public long[] toSortedArray()
toSortedArray
in interface LongIterable
toSortedArray
in class AbstractLazyLongIterable
public MutableLongList toList()
LongIterable
toList
in interface LongIterable
toList
in class AbstractLazyLongIterable
public MutableLongSet toSet()
LongIterable
toSet
in interface LongIterable
toSet
in class AbstractLazyLongIterable
public MutableLongBag toBag()
LongIterable
toBag
in interface LongIterable
toBag
in class AbstractLazyLongIterable
public boolean containsAll(long... source)
LongIterable
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
public boolean containsAll(LongIterable source)
LongIterable
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
Copyright © 2004–2019. All rights reserved.