public class LazyLongIterableAdapter extends AbstractLazyLongIterable
| Constructor and Description |
|---|
LazyLongIterableAdapter(com.gs.collections.api.LongIterable delegate) |
| 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) |
void |
appendString(java.lang.Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
Prints a string representation of this collection onto the given
Appendable. |
double |
average() |
<V> com.gs.collections.api.LazyIterable<V> |
collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
contains(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(com.gs.collections.api.LongIterable source) |
int |
count(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
detectIfNone(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.LongProcedure procedure) |
<T> T |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
com.gs.collections.api.iterator.LongIterator |
longIterator() |
java.lang.String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
java.lang.String |
makeString(java.lang.String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
java.lang.String |
makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
Returns a string representation of this collection.
|
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
com.gs.collections.api.LazyLongIterable |
reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
com.gs.collections.api.LazyLongIterable |
select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
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() |
com.gs.collections.api.list.primitive.MutableLongList |
toSortedList() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
asLazypublic LazyLongIterableAdapter(com.gs.collections.api.LongIterable delegate)
public com.gs.collections.api.iterator.LongIterator longIterator()
public void forEach(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 com.gs.collections.api.LazyLongIterable select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface com.gs.collections.api.LazyLongIterableselect in interface com.gs.collections.api.LongIterableselect in class AbstractLazyLongIterablepublic com.gs.collections.api.LazyLongIterable reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface com.gs.collections.api.LazyLongIterablereject in interface com.gs.collections.api.LongIterablereject in class AbstractLazyLongIterablepublic long detectIfNone(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone)
detectIfNone in interface com.gs.collections.api.LongIterabledetectIfNone in class AbstractLazyLongIterablepublic <V> com.gs.collections.api.LazyIterable<V> collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.LazyLongIterablecollect in interface com.gs.collections.api.LongIterablecollect in class AbstractLazyLongIterablepublic long sum()
sum in interface com.gs.collections.api.LongIterablesum in class AbstractLazyLongIterablepublic long max()
max in interface com.gs.collections.api.LongIterablemax in class AbstractLazyLongIterablepublic long min()
min in interface com.gs.collections.api.LongIterablemin in class AbstractLazyLongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface com.gs.collections.api.LongIterableminIfEmpty in class AbstractLazyLongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface com.gs.collections.api.LongIterablemaxIfEmpty in class AbstractLazyLongIterablepublic double average()
average in interface com.gs.collections.api.LongIterableaverage in class AbstractLazyLongIterablepublic double median()
median in interface com.gs.collections.api.LongIterablemedian in class AbstractLazyLongIterablepublic long[] toSortedArray()
toSortedArray in interface com.gs.collections.api.LongIterabletoSortedArray in class AbstractLazyLongIterablepublic com.gs.collections.api.list.primitive.MutableLongList toSortedList()
toSortedList in interface com.gs.collections.api.LongIterabletoSortedList in class AbstractLazyLongIterablepublic long[] toArray()
toArray in interface com.gs.collections.api.LongIterabletoArray in class AbstractLazyLongIterablepublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractLazyLongIterablepublic java.lang.String makeString()
com.gs.collections.api.PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyLongIterablepublic java.lang.String makeString(java.lang.String separator)
com.gs.collections.api.PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyLongIterablepublic java.lang.String makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterablemakeString in interface com.gs.collections.api.PrimitiveIterablemakeString in class AbstractLazyLongIterablepublic void appendString(java.lang.Appendable appendable)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyLongIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String separator)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyLongIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterableappendString in class AbstractLazyLongIterablepublic boolean contains(long value)
contains in interface com.gs.collections.api.LongIterablecontains 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 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 <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.LongIterableinjectInto in class AbstractLazyLongIterable