public interface LongStack extends OrderedLongIterable
| Modifier and Type | Method and Description |
|---|---|
<V> StackIterable<V> |
collect(LongToObjectFunction<? 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(LongIntToObjectFunction<? 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(). |
long |
peek()
Returns the top of the stack.
|
LongList |
peek(int count)
Returns LongList of the number of elements specified by the count, beginning with the top of the stack.
|
long |
peekAt(int index)
Returns the element at the specified index.
|
LongStack |
reject(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
default LongStack |
rejectWithIndex(LongIntPredicate predicate)
Returns a new LongStack excluding all elements with corresponding indexes matching the specified predicate.
|
LongStack |
select(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
default LongStack |
selectWithIndex(LongIntPredicate predicate)
Returns a new LongStack including all elements with corresponding indexes matching the specified predicate.
|
default LongStack |
tap(LongProcedure procedure) |
ImmutableLongStack |
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, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringlong peek()
LongList peek(int count)
long peekAt(int index)
index - the location to peek intoLongStack select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface OrderedLongIterableLongStack reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface OrderedLongIterabledefault LongStack tap(LongProcedure procedure)
tap in interface LongIterable<V> StackIterable<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface OrderedLongIterabledefault LongStack selectWithIndex(LongIntPredicate predicate)
selectWithIndex in interface OrderedLongIterabledefault LongStack rejectWithIndex(LongIntPredicate predicate)
rejectWithIndex in interface OrderedLongIterabledefault <V> StackIterable<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedLongIterableboolean equals(Object o)
StackIterable.equals(Object).int hashCode()
StackIterable.hashCode().ImmutableLongStack toImmutable()
Copyright © 2004–2022. All rights reserved.