Externalizable
, Serializable
, FloatIterable
, OrderedFloatIterable
, PrimitiveIterable
, FloatStack
, MutableFloatStack
public class FloatArrayStack extends AbstractFloatStack implements MutableFloatStack, 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.
|
FloatArrayStack |
newEmpty() |
Creates a new empty FloatArrayStack.
|
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(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(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, 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, toString
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
equals, hashCode, peek, peek, peekAt
collectWithIndex, tap
collectWithIndex, forEachWithIndex, getFirst, indexOf, injectIntoWithIndex
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public 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)
MutableFloatStack
push
in interface MutableFloatStack
public float pop()
MutableFloatStack
pop
in interface MutableFloatStack
public FloatList pop(int count)
MutableFloatStack
pop
in interface MutableFloatStack
public MutableFloatStack select(FloatPredicate predicate)
FloatIterable
select
in interface FloatIterable
select
in interface FloatStack
select
in interface MutableFloatStack
select
in interface OrderedFloatIterable
public MutableFloatStack reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
reject
in interface FloatStack
reject
in interface MutableFloatStack
reject
in interface OrderedFloatIterable
public <V> MutableStack<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
collect
in interface FloatStack
collect
in interface MutableFloatStack
collect
in interface OrderedFloatIterable
public void clear()
MutableFloatStack
clear
in interface MutableFloatStack
public MutableFloatList toSortedList()
toSortedList
in interface FloatIterable
public MutableFloatStack asUnmodifiable()
asUnmodifiable
in interface MutableFloatStack
public MutableFloatStack asSynchronized()
asSynchronized
in interface MutableFloatStack
public ImmutableFloatStack toImmutable()
toImmutable
in interface FloatStack
public FloatArrayStack newEmpty()
newEmpty
in interface MutableFloatStack
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
Copyright © 2004–2019. All rights reserved.