Externalizable
, Serializable
, IntIterable
, OrderedIntIterable
, PrimitiveIterable
, IntStack
, MutableIntStack
public class IntArrayStack extends AbstractIntStack implements MutableIntStack, Externalizable
ArrayStack
, and is memory-optimized for int primitives.
This file was automatically generated from template file primitiveArrayStack.stg.Constructor | Description |
---|---|
IntArrayStack() |
Modifier and Type | Method | Description |
---|---|---|
MutableIntStack |
asSynchronized() |
|
MutableIntStack |
asUnmodifiable() |
|
void |
clear() |
Clears the Stack
|
<V> MutableStack<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
IntArrayStack |
newEmpty() |
Creates a new empty IntArrayStack.
|
static IntArrayStack |
newStack(IntIterable items) |
|
static IntArrayStack |
newStackFromTopToBottom(int... items) |
|
static IntArrayStack |
newStackFromTopToBottom(IntIterable items) |
|
static IntArrayStack |
newStackWith(int... items) |
|
int |
pop() |
Removes and returns the top element of the stack.
|
IntList |
pop(int count) |
Removes and returns a IntList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(int item) |
Adds an item to the top of the stack.
|
void |
readExternal(ObjectInput in) |
|
MutableIntStack |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
MutableIntStack |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
ImmutableIntStack |
toImmutable() |
|
MutableIntList |
toSortedList() |
|
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, contains, containsAll, containsAll, count, detectIfNone, each, equals, forEach, forEachWithIndex, getFirst, hashCode, indexOf, injectInto, injectIntoWithIndex, intIterator, 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, forEach, injectInto, intIterator, 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 IntArrayStack newStackFromTopToBottom(int... items)
public static IntArrayStack newStackWith(int... items)
public static IntArrayStack newStack(IntIterable items)
public static IntArrayStack newStackFromTopToBottom(IntIterable items)
public void push(int item)
MutableIntStack
push
in interface MutableIntStack
public int pop()
MutableIntStack
pop
in interface MutableIntStack
public IntList pop(int count)
MutableIntStack
pop
in interface MutableIntStack
public MutableIntStack select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface IntStack
select
in interface MutableIntStack
select
in interface OrderedIntIterable
public MutableIntStack reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface IntStack
reject
in interface MutableIntStack
reject
in interface OrderedIntIterable
public <V> MutableStack<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface IntStack
collect
in interface MutableIntStack
collect
in interface OrderedIntIterable
public void clear()
MutableIntStack
clear
in interface MutableIntStack
public MutableIntList toSortedList()
toSortedList
in interface IntIterable
public MutableIntStack asUnmodifiable()
asUnmodifiable
in interface MutableIntStack
public MutableIntStack asSynchronized()
asSynchronized
in interface MutableIntStack
public ImmutableIntStack toImmutable()
toImmutable
in interface IntStack
public IntArrayStack newEmpty()
newEmpty
in interface MutableIntStack
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.