public abstract class AbstractLongStack extends Object implements LongStack
| Constructor and Description |
|---|
AbstractLongStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(LongPredicate predicate) |
boolean |
anySatisfy(LongPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyLongIterable |
asLazy() |
double |
average() |
RichIterable<LongIterable> |
chunk(int size) |
boolean |
contains(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(LongIterable source) |
int |
count(LongPredicate predicate) |
long |
detectIfNone(LongPredicate predicate,
long ifNone) |
void |
each(LongProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEachWithIndex(LongIntProcedure procedure) |
long |
getFirst() |
int |
hashCode() |
int |
indexOf(long value) |
<V> V |
injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function) |
LongIterator |
longIterator() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
boolean |
noneSatisfy(LongPredicate predicate) |
long |
peek() |
LongList |
peek(int count) |
long |
peekAt(int index) |
int |
size() |
long |
sum() |
long[] |
toArray() |
long[] |
toArray(long[] target) |
MutableLongBag |
toBag() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
String |
toString() |
collect, collectWithIndex, reject, rejectWithIndex, select, selectWithIndex, tap, toImmutablecollectWithIndex, rejectWithIndex, selectWithIndexaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedList, toSortedListBy, toSortedListByisEmpty, notEmptypublic LongIterator longIterator()
longIterator in interface LongIterablepublic void each(LongProcedure procedure)
each in interface LongIterablepublic int count(LongPredicate predicate)
count in interface LongIterablepublic boolean anySatisfy(LongPredicate predicate)
anySatisfy in interface LongIterablepublic boolean allSatisfy(LongPredicate predicate)
allSatisfy in interface LongIterablepublic boolean noneSatisfy(LongPredicate predicate)
noneSatisfy in interface LongIterablepublic long detectIfNone(LongPredicate predicate, long ifNone)
detectIfNone in interface LongIterablepublic long[] toArray()
toArray in interface LongIterablepublic long[] toArray(long[] target)
toArray in interface LongIterablepublic boolean contains(long value)
contains in interface LongIterablepublic boolean containsAll(long... source)
containsAll in interface LongIterablepublic boolean containsAll(LongIterable source)
containsAll in interface LongIterablepublic MutableLongList toList()
toList in interface LongIterablepublic MutableLongSet toSet()
toSet in interface LongIterablepublic MutableLongBag toBag()
toBag in interface LongIterablepublic <V> V injectInto(V injectedValue,
ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic LazyLongIterable asLazy()
asLazy in interface LongIterablepublic int size()
size in interface PrimitiveIterablepublic boolean equals(Object otherStack)
public int hashCode()
public String toString()
toString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic long getFirst()
getFirst in interface OrderedLongIterablepublic int indexOf(long value)
indexOf in interface OrderedLongIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedLongIterablepublic void forEachWithIndex(LongIntProcedure procedure)
forEachWithIndex in interface OrderedLongIterablepublic RichIterable<LongIterable> chunk(int size)
chunk in interface LongIterablepublic long sum()
sum in interface LongIterablepublic long max()
max in interface LongIterablepublic long min()
min in interface LongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface LongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface LongIterablepublic double average()
average in interface LongIterablepublic double median()
median in interface LongIterablepublic long[] toSortedArray()
toSortedArray in interface LongIterableCopyright © 2004–2022. All rights reserved.