LongIterable
, OrderedLongIterable
, PrimitiveIterable
ImmutableLongStack
, MutableLongStack
AbstractLongStack
, LongArrayStack
, SynchronizedLongStack
, UnmodifiableLongStack
public interface LongStack extends OrderedLongIterable
Modifier and Type | Method | 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.
|
boolean |
equals(java.lang.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.
|
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 |
tap(LongProcedure procedure) |
|
ImmutableLongStack |
toImmutable() |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
long peek()
LongList peek(int count)
long peekAt(int index)
index
- the location to peek intoLongStack select(LongPredicate predicate)
LongIterable
select
in interface LongIterable
select
in interface OrderedLongIterable
LongStack reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
reject
in interface OrderedLongIterable
default LongStack tap(LongProcedure procedure)
tap
in interface LongIterable
<V> StackIterable<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
collect
in interface OrderedLongIterable
boolean equals(java.lang.Object o)
StackIterable.equals(Object)
.equals
in class java.lang.Object
int hashCode()
StackIterable.hashCode()
.hashCode
in class java.lang.Object
ImmutableLongStack toImmutable()
Copyright © 2004–2017. All rights reserved.