java.io.Externalizable, java.io.Serializable, FloatIterable, OrderedFloatIterable, PrimitiveIterable, FloatStack, MutableFloatStackpublic final class FloatArrayStack extends AbstractFloatStack implements MutableFloatStack, java.io.Externalizable
ArrayStack, and is memory-optimized for float primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor | Description |
|---|---|
FloatArrayStack() |
| 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.
|
static FloatArrayStack |
newStack(FloatIterable items) |
|
static FloatArrayStack |
newStackFromTopToBottom(float... items) |
|
static FloatArrayStack |
newStackFromTopToBottom(FloatIterable items) |
|
static FloatArrayStack |
newStackWith(float... items) |
|
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.
|
void |
readExternal(java.io.ObjectInput in) |
|
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.
|
ImmutableFloatStack |
toImmutable() |
|
MutableFloatList |
toSortedList() |
|
void |
writeExternal(java.io.ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, equals, floatIterator, forEach, forEachWithIndex, getFirst, hashCode, indexOf, injectInto, injectIntoWithIndex, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, peek, peek, peekAt, size, sum, toArray, toBag, toList, toSet, toSortedArray, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArrayequals, hashCode, peek, peek, peekAttapforEachWithIndex, getFirst, indexOf, injectIntoWithIndexappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static FloatArrayStack newStackFromTopToBottom(float... items)
public static FloatArrayStack newStackWith(float... items)
public static FloatArrayStack newStack(FloatIterable items)
public static FloatArrayStack newStackFromTopToBottom(FloatIterable items)
public void push(float item)
MutableFloatStackpush in interface MutableFloatStackpublic float pop()
MutableFloatStackpop in interface MutableFloatStackpublic FloatList pop(int count)
MutableFloatStackpop in interface MutableFloatStackpublic MutableFloatStack select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface FloatStackselect in interface MutableFloatStackselect in interface OrderedFloatIterablepublic MutableFloatStack reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface FloatStackreject in interface MutableFloatStackreject in interface OrderedFloatIterablepublic <V> MutableStack<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface FloatStackcollect in interface MutableFloatStackcollect in interface OrderedFloatIterablepublic void clear()
MutableFloatStackclear in interface MutableFloatStackpublic MutableFloatList toSortedList()
toSortedList in interface FloatIterablepublic MutableFloatStack asUnmodifiable()
asUnmodifiable in interface MutableFloatStackpublic MutableFloatStack asSynchronized()
asSynchronized in interface MutableFloatStackpublic ImmutableFloatStack toImmutable()
toImmutable in interface FloatStackpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionCopyright © 2004–2017. All rights reserved.