java.io.Externalizable
, java.io.Serializable
, FloatIterable
, OrderedFloatIterable
, PrimitiveIterable
, FloatStack
, MutableFloatStack
public 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, toString
allSatisfy, 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, toSortedArray
equals, hashCode, peek, peek, peekAt
tap
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 void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
Copyright © 2004–2017. All rights reserved.