public class UnmodifiableLongStack extends Object implements MutableLongStack, Serializable
| Constructor and Description |
|---|
UnmodifiableLongStack(MutableLongStack stack) |
| 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() |
MutableLongStack |
asSynchronized() |
MutableLongStack |
asUnmodifiable() |
double |
average() |
RichIterable<LongIterable> |
chunk(int size) |
void |
clear() |
<V> MutableStack<V> |
collect(LongToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
collectWithIndex(LongIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
<V,R extends Collection<V>> |
collectWithIndex(LongIntToObjectFunction<? extends V> function,
R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
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) |
<T> T |
injectInto(T injectedValue,
ObjectLongToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
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) |
MutableLongStack |
newEmpty() |
boolean |
noneSatisfy(LongPredicate predicate) |
boolean |
notEmpty() |
long |
peek() |
LongList |
peek(int count) |
long |
peekAt(int index) |
long |
pop() |
LongList |
pop(int count) |
void |
push(long item) |
MutableLongStack |
reject(LongPredicate predicate) |
MutableLongStack |
select(LongPredicate predicate) |
int |
size() |
long |
sum() |
long[] |
toArray() |
long[] |
toArray(long[] target) |
MutableLongBag |
toBag() |
ImmutableLongStack |
toImmutable() |
MutableLongList |
toList() |
MutableLongSet |
toSet() |
long[] |
toSortedArray() |
MutableLongList |
toSortedList() |
String |
toString() |
rejectWithIndex, selectWithIndex, taprejectWithIndex, 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, toSortedListBy, toSortedListBypublic UnmodifiableLongStack(MutableLongStack stack)
public void push(long item)
push in interface MutableLongStackpublic long pop()
pop in interface MutableLongStackpublic LongList pop(int count)
pop in interface MutableLongStackpublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableLongStackpublic boolean contains(long value)
contains in interface LongIterablepublic boolean containsAll(long... source)
containsAll in interface LongIterablepublic boolean containsAll(LongIterable source)
containsAll in interface LongIterablepublic 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 MutableLongStack select(LongPredicate predicate)
select in interface LongIterableselect in interface OrderedLongIterableselect in interface LongStackselect in interface MutableLongStackpublic MutableLongStack reject(LongPredicate predicate)
reject in interface LongIterablereject in interface OrderedLongIterablereject in interface LongStackreject in interface MutableLongStackpublic <V> MutableStack<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongIterablecollect in interface OrderedLongIterablecollect in interface LongStackcollect in interface MutableLongStackpublic 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 MutableLongList toSortedList()
toSortedList in interface LongIterablepublic long[] toSortedArray()
toSortedArray in interface LongIterablepublic long[] toArray()
toArray in interface LongIterablepublic long[] toArray(long[] target)
toArray in interface LongIterablepublic 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 MutableLongList toList()
toList in interface LongIterablepublic MutableLongSet toSet()
toSet in interface LongIterablepublic MutableLongBag toBag()
toBag in interface LongIterablepublic boolean equals(Object otherStack)
public int hashCode()
public LazyLongIterable asLazy()
asLazy in interface LongIterablepublic MutableLongStack asUnmodifiable()
asUnmodifiable in interface MutableLongStackpublic MutableLongStack asSynchronized()
asSynchronized in interface MutableLongStackpublic ImmutableLongStack toImmutable()
toImmutable in interface LongStackpublic MutableLongStack newEmpty()
newEmpty in interface MutableLongStackpublic <T> T injectInto(T injectedValue,
ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface LongIterablepublic RichIterable<LongIterable> chunk(int size)
chunk in interface LongIterablepublic 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 <V> MutableStack<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedLongIterablecollectWithIndex in interface LongStackcollectWithIndex in interface MutableLongStackpublic <V,R extends Collection<V>> R collectWithIndex(LongIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedLongIterableCopyright © 2004–2022. All rights reserved.