public interface FloatStack extends OrderedFloatIterable
| Modifier and Type | Method and Description |
|---|---|
<V> StackIterable<V> |
collect(FloatToObjectFunction<? 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(FloatIntToObjectFunction<? 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(). |
float |
peek()
Returns the top of the stack.
|
FloatList |
peek(int count)
Returns FloatList of the number of elements specified by the count, beginning with the top of the stack.
|
float |
peekAt(int index)
Returns the element at the specified index.
|
FloatStack |
reject(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
FloatStack |
select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
default FloatStack |
tap(FloatProcedure procedure) |
ImmutableFloatStack |
toImmutable() |
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndexallSatisfy, 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, floatIterator, forEach, injectInto, 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, toStringfloat peek()
FloatList peek(int count)
float peekAt(int index)
index - the location to peek intoFloatStack select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface OrderedFloatIterableFloatStack reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface OrderedFloatIterabledefault FloatStack tap(FloatProcedure procedure)
tap in interface FloatIterable<V> StackIterable<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface OrderedFloatIterabledefault <V> StackIterable<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedFloatIterableboolean equals(Object o)
StackIterable.equals(Object).int hashCode()
StackIterable.hashCode().ImmutableFloatStack toImmutable()
Copyright © 2004–2021. All rights reserved.