public interface ShortStack extends OrderedShortIterable
| Modifier and Type | Method and Description |
|---|---|
<V> StackIterable<V> |
collect(ShortToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V> StackIterable<V> |
collectWithIndex(ShortIntToObjectFunction<? extends V> function)
Returns a new StackIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
boolean |
equals(Object o)
Follows the same general contract as
StackIterable.equals(Object). |
int |
hashCode()
Follows the same general contract as
StackIterable.hashCode(). |
short |
peek()
Returns the top of the stack.
|
ShortList |
peek(int count)
Returns ShortList of the number of elements specified by the count, beginning with the top of the stack.
|
short |
peekAt(int index)
Returns the element at the specified index.
|
ShortStack |
reject(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
default ShortStack |
rejectWithIndex(ShortIntPredicate predicate)
Returns a new ShortStack excluding all elements with corresponding indexes matching the specified predicate.
|
ShortStack |
select(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
default ShortStack |
selectWithIndex(ShortIntPredicate predicate)
Returns a new ShortStack including all elements with corresponding indexes matching the specified predicate.
|
default ShortStack |
tap(ShortProcedure procedure) |
ImmutableShortStack |
toImmutable() |
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringshort peek()
ShortList peek(int count)
short peekAt(int index)
index - the location to peek intoShortStack select(ShortPredicate predicate)
ShortIterableselect in interface OrderedShortIterableselect in interface ShortIterableShortStack reject(ShortPredicate predicate)
ShortIterablereject in interface OrderedShortIterablereject in interface ShortIterabledefault ShortStack tap(ShortProcedure procedure)
tap in interface ShortIterable<V> StackIterable<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface OrderedShortIterablecollect in interface ShortIterabledefault ShortStack selectWithIndex(ShortIntPredicate predicate)
selectWithIndex in interface OrderedShortIterabledefault ShortStack rejectWithIndex(ShortIntPredicate predicate)
rejectWithIndex in interface OrderedShortIterabledefault <V> StackIterable<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedShortIterableboolean equals(Object o)
StackIterable.equals(Object).int hashCode()
StackIterable.hashCode().ImmutableShortStack toImmutable()
Copyright © 2004–2022. All rights reserved.