public final class UnmodifiableShortStack extends Object implements MutableShortStack, Serializable
| Constructor and Description |
|---|
UnmodifiableShortStack(MutableShortStack stack) |
tapaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatisticspublic UnmodifiableShortStack(MutableShortStack stack)
public void push(short item)
push in interface MutableShortStackpublic short pop()
pop in interface MutableShortStackpublic ShortList pop(int count)
pop in interface MutableShortStackpublic short peek()
peek in interface ShortStackpublic ShortList peek(int count)
peek in interface ShortStackpublic short peekAt(int index)
peekAt in interface ShortStackpublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableShortStackpublic boolean contains(short value)
contains in interface ShortIterablepublic boolean containsAll(short... source)
containsAll in interface ShortIterablepublic boolean containsAll(ShortIterable source)
containsAll in interface ShortIterablepublic ShortIterator shortIterator()
shortIterator in interface ShortIterablepublic void forEach(ShortProcedure procedure)
forEach in interface ShortIterablepublic void each(ShortProcedure procedure)
each in interface ShortIterablepublic int count(ShortPredicate predicate)
count in interface ShortIterablepublic boolean anySatisfy(ShortPredicate predicate)
anySatisfy in interface ShortIterablepublic boolean allSatisfy(ShortPredicate predicate)
allSatisfy in interface ShortIterablepublic boolean noneSatisfy(ShortPredicate predicate)
noneSatisfy in interface ShortIterablepublic short detectIfNone(ShortPredicate predicate, short ifNone)
detectIfNone in interface ShortIterablepublic MutableShortStack select(ShortPredicate predicate)
select in interface OrderedShortIterableselect in interface ShortIterableselect in interface MutableShortStackselect in interface ShortStackpublic MutableShortStack reject(ShortPredicate predicate)
reject in interface OrderedShortIterablereject in interface ShortIterablereject in interface MutableShortStackreject in interface ShortStackpublic <V> MutableStack<V> collect(ShortToObjectFunction<? extends V> function)
collect in interface OrderedShortIterablecollect in interface ShortIterablecollect in interface MutableShortStackcollect in interface ShortStackpublic long sum()
sum in interface ShortIterablepublic short max()
max in interface ShortIterablepublic short min()
min in interface ShortIterablepublic short minIfEmpty(short defaultValue)
minIfEmpty in interface ShortIterablepublic short maxIfEmpty(short defaultValue)
maxIfEmpty in interface ShortIterablepublic double average()
average in interface ShortIterablepublic double median()
median in interface ShortIterablepublic MutableShortList toSortedList()
toSortedList in interface ShortIterablepublic short[] toSortedArray()
toSortedArray in interface ShortIterablepublic short[] toArray()
toArray in interface ShortIterablepublic 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 MutableShortList toList()
toList in interface ShortIterablepublic MutableShortSet toSet()
toSet in interface ShortIterablepublic MutableShortBag toBag()
toBag in interface ShortIterablepublic boolean equals(Object otherStack)
equals in interface ShortStackequals in class Objectpublic int hashCode()
hashCode in interface ShortStackhashCode in class Objectpublic LazyShortIterable asLazy()
asLazy in interface ShortIterablepublic MutableShortStack asUnmodifiable()
asUnmodifiable in interface MutableShortStackpublic MutableShortStack asSynchronized()
asSynchronized in interface MutableShortStackpublic ImmutableShortStack toImmutable()
toImmutable in interface ShortStackpublic <T> T injectInto(T injectedValue,
ObjectShortToObjectFunction<? super T,? extends T> function)
injectInto in interface ShortIterablepublic short getFirst()
getFirst in interface OrderedShortIterablepublic int indexOf(short value)
indexOf in interface OrderedShortIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectShortIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedShortIterablepublic void forEachWithIndex(ShortIntProcedure procedure)
forEachWithIndex in interface OrderedShortIterableCopyright © 2004–2017. All rights reserved.