FloatIterable
, FloatStack
, OrderedFloatIterable
, PrimitiveIterable
FloatArrayStack
, SynchronizedFloatStack
, UnmodifiableFloatStack
public interface MutableFloatStack extends FloatStack
Modifier and Type | Method | Description |
---|---|---|
MutableFloatStack |
asSynchronized() |
|
MutableFloatStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<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> MutableStack<V> |
collectWithIndex(FloatIntToObjectFunction<? extends V> function) |
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
default MutableFloatStack |
newEmpty() |
Creates a new empty mutable version of the same stack type.
|
float |
pop() |
Removes and returns the top element of the stack.
|
FloatList |
pop(int count) |
Removes and returns a FloatList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(float item) |
Adds an item to the top of the stack.
|
MutableFloatStack |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
MutableFloatStack |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
default MutableFloatStack |
tap(FloatProcedure procedure) |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
equals, hashCode, peek, peek, peekAt, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void push(float item)
float pop()
FloatList pop(int count)
void clear()
MutableFloatStack select(FloatPredicate predicate)
FloatIterable
select
in interface FloatIterable
select
in interface FloatStack
select
in interface OrderedFloatIterable
MutableFloatStack reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
reject
in interface FloatStack
reject
in interface OrderedFloatIterable
default MutableFloatStack tap(FloatProcedure procedure)
tap
in interface FloatIterable
tap
in interface FloatStack
<V> MutableStack<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
collect
in interface FloatStack
collect
in interface OrderedFloatIterable
default <V> MutableStack<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex
in interface FloatStack
collectWithIndex
in interface OrderedFloatIterable
MutableFloatStack asUnmodifiable()
MutableFloatStack asSynchronized()
default MutableFloatStack newEmpty()
Copyright © 2004–2019. All rights reserved.