@Immutable public class CollectLongIterable<T> extends AbstractLazyLongIterable
| Constructor and Description |
|---|
CollectLongIterable(com.gs.collections.api.LazyIterable<T> adapted,
com.gs.collections.api.block.function.primitive.LongFunction<? super T> function) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
containsAll(long... source) |
boolean |
containsAll(com.gs.collections.api.LongIterable source) |
int |
count(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
each(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
com.gs.collections.api.iterator.LongIterator |
longIterator() |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
long[] |
toArray() |
com.gs.collections.api.bag.primitive.MutableLongBag |
toBag() |
com.gs.collections.api.list.primitive.MutableLongList |
toList() |
com.gs.collections.api.set.primitive.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, toStringpublic com.gs.collections.api.iterator.LongIterator longIterator()
public void forEach(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
forEach in interface com.gs.collections.api.LongIterableforEach in class AbstractLazyLongIterablepublic void each(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure)
public int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablesize in class AbstractLazyLongIterablepublic boolean isEmpty()
com.gs.collections.api.PrimitiveIterableisEmpty in interface com.gs.collections.api.PrimitiveIterableisEmpty in class AbstractLazyLongIterablepublic boolean notEmpty()
com.gs.collections.api.PrimitiveIterablenotEmpty in interface com.gs.collections.api.PrimitiveIterablenotEmpty in class AbstractLazyLongIterablepublic int count(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
count in interface com.gs.collections.api.LongIterablecount in class AbstractLazyLongIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
anySatisfy in interface com.gs.collections.api.LongIterableanySatisfy in class AbstractLazyLongIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
allSatisfy in interface com.gs.collections.api.LongIterableallSatisfy in class AbstractLazyLongIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
noneSatisfy in interface com.gs.collections.api.LongIterablenoneSatisfy in class AbstractLazyLongIterablepublic long[] toArray()
toArray in interface com.gs.collections.api.LongIterabletoArray in class AbstractLazyLongIterablepublic long[] toSortedArray()
toSortedArray in interface com.gs.collections.api.LongIterabletoSortedArray in class AbstractLazyLongIterablepublic com.gs.collections.api.list.primitive.MutableLongList toList()
toList in interface com.gs.collections.api.LongIterabletoList in class AbstractLazyLongIterablepublic com.gs.collections.api.set.primitive.MutableLongSet toSet()
toSet in interface com.gs.collections.api.LongIterabletoSet in class AbstractLazyLongIterablepublic com.gs.collections.api.bag.primitive.MutableLongBag toBag()
toBag in interface com.gs.collections.api.LongIterabletoBag in class AbstractLazyLongIterablepublic boolean containsAll(long... source)
containsAll in interface com.gs.collections.api.LongIterablecontainsAll in class AbstractLazyLongIterablepublic boolean containsAll(com.gs.collections.api.LongIterable source)
containsAll in interface com.gs.collections.api.LongIterablecontainsAll in class AbstractLazyLongIterable