@Immutable public class CollectLongIterable<T> extends AbstractLazyLongIterable
Constructor and Description |
---|
CollectLongIterable(LazyIterable<T> adapted,
LongFunction<? super T> function) |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(LongPredicate predicate) |
boolean |
anySatisfy(LongPredicate predicate) |
boolean |
containsAll(long... source) |
boolean |
containsAll(LongIterable source) |
int |
count(LongPredicate predicate) |
void |
each(LongProcedure procedure) |
void |
forEach(LongProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
LongIterator |
longIterator() |
boolean |
noneSatisfy(LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
long[] |
toArray() |
MutableLongBag |
toBag() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
appendString, appendString, appendString, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, toSortedList, toString
public CollectLongIterable(LazyIterable<T> adapted, LongFunction<? super T> function)
public LongIterator longIterator()
public void forEach(LongProcedure procedure)
forEach
in interface LongIterable
forEach
in class AbstractLazyLongIterable
public void each(LongProcedure procedure)
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)
count
in interface LongIterable
count
in class AbstractLazyLongIterable
public boolean anySatisfy(LongPredicate predicate)
anySatisfy
in interface LongIterable
anySatisfy
in class AbstractLazyLongIterable
public boolean allSatisfy(LongPredicate predicate)
allSatisfy
in interface LongIterable
allSatisfy
in class AbstractLazyLongIterable
public boolean noneSatisfy(LongPredicate predicate)
noneSatisfy
in interface LongIterable
noneSatisfy
in class AbstractLazyLongIterable
public long[] toArray()
toArray
in interface LongIterable
toArray
in class AbstractLazyLongIterable
public long[] toSortedArray()
toSortedArray
in interface LongIterable
toSortedArray
in class AbstractLazyLongIterable
public MutableLongList toList()
toList
in interface LongIterable
toList
in class AbstractLazyLongIterable
public MutableLongSet toSet()
toSet
in interface LongIterable
toSet
in class AbstractLazyLongIterable
public MutableLongBag toBag()
toBag
in interface LongIterable
toBag
in class AbstractLazyLongIterable
public boolean containsAll(long... source)
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
public boolean containsAll(LongIterable source)
containsAll
in interface LongIterable
containsAll
in class AbstractLazyLongIterable
Copyright © 2004–2016. All rights reserved.