@NotThreadSafe public final class ByteArrayStack extends Object implements org.eclipse.collections.api.stack.primitive.MutableByteStack, Externalizable
ArrayStack, and is memory-optimized for byte primitives.
This file was automatically generated from template file primitiveArrayStack.stg.| Constructor and Description |
|---|
ByteArrayStack() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyByteIterable |
asLazy() |
org.eclipse.collections.api.stack.primitive.MutableByteStack |
asSynchronized() |
org.eclipse.collections.api.stack.primitive.MutableByteStack |
asUnmodifiable() |
double |
average() |
org.eclipse.collections.api.iterator.ByteIterator |
byteIterator() |
void |
clear() |
<V> org.eclipse.collections.api.stack.MutableStack<V> |
collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function) |
boolean |
contains(byte value) |
boolean |
containsAll(byte... source) |
boolean |
containsAll(org.eclipse.collections.api.ByteIterable source) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
byte |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
byte |
max() |
byte |
maxIfEmpty(byte defaultValue) |
double |
median() |
byte |
min() |
byte |
minIfEmpty(byte defaultValue) |
static ByteArrayStack |
newStack(org.eclipse.collections.api.ByteIterable items) |
static ByteArrayStack |
newStackFromTopToBottom(byte... items) |
static ByteArrayStack |
newStackFromTopToBottom(org.eclipse.collections.api.ByteIterable items) |
static ByteArrayStack |
newStackWith(byte... items) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
notEmpty() |
byte |
peek() |
org.eclipse.collections.api.list.primitive.ByteList |
peek(int count) |
byte |
peekAt(int index) |
byte |
pop() |
org.eclipse.collections.api.list.primitive.ByteList |
pop(int count) |
void |
push(byte item) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.stack.primitive.MutableByteStack |
reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
org.eclipse.collections.api.stack.primitive.MutableByteStack |
select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
int |
size() |
long |
sum() |
byte[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
toBag() |
org.eclipse.collections.api.stack.primitive.ImmutableByteStack |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableByteList |
toList() |
org.eclipse.collections.api.set.primitive.MutableByteSet |
toSet() |
byte[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableByteList |
toSortedList() |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static ByteArrayStack newStackFromTopToBottom(byte... items)
public static ByteArrayStack newStackWith(byte... items)
public static ByteArrayStack newStack(org.eclipse.collections.api.ByteIterable items)
public static ByteArrayStack newStackFromTopToBottom(org.eclipse.collections.api.ByteIterable items)
public void push(byte item)
push in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic byte pop()
pop in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic org.eclipse.collections.api.list.primitive.ByteList pop(int count)
pop in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic org.eclipse.collections.api.stack.primitive.MutableByteStack select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
select in interface org.eclipse.collections.api.ByteIterableselect in interface org.eclipse.collections.api.stack.primitive.ByteStackselect in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic org.eclipse.collections.api.stack.primitive.MutableByteStack reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
reject in interface org.eclipse.collections.api.ByteIterablereject in interface org.eclipse.collections.api.stack.primitive.ByteStackreject in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic byte peek()
peek in interface org.eclipse.collections.api.stack.primitive.ByteStackpublic org.eclipse.collections.api.list.primitive.ByteList peek(int count)
peek in interface org.eclipse.collections.api.stack.primitive.ByteStackpublic byte peekAt(int index)
peekAt in interface org.eclipse.collections.api.stack.primitive.ByteStackpublic org.eclipse.collections.api.iterator.ByteIterator byteIterator()
byteIterator in interface org.eclipse.collections.api.ByteIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEach in interface org.eclipse.collections.api.ByteIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
each in interface org.eclipse.collections.api.ByteIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
count in interface org.eclipse.collections.api.ByteIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
anySatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
allSatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.ByteIterablepublic byte detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone)
detectIfNone in interface org.eclipse.collections.api.ByteIterablepublic <V> org.eclipse.collections.api.stack.MutableStack<V> collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.ByteIterablecollect in interface org.eclipse.collections.api.stack.primitive.ByteStackcollect in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.ByteIterablepublic long sum()
sum in interface org.eclipse.collections.api.ByteIterablepublic byte max()
max in interface org.eclipse.collections.api.ByteIterablepublic byte min()
min in interface org.eclipse.collections.api.ByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface org.eclipse.collections.api.ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.ByteIterablepublic double average()
average in interface org.eclipse.collections.api.ByteIterablepublic double median()
median in interface org.eclipse.collections.api.ByteIterablepublic byte[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.ByteIterablepublic byte[] toArray()
toArray in interface org.eclipse.collections.api.ByteIterablepublic boolean contains(byte value)
contains in interface org.eclipse.collections.api.ByteIterablepublic boolean containsAll(byte... source)
containsAll in interface org.eclipse.collections.api.ByteIterablepublic boolean containsAll(org.eclipse.collections.api.ByteIterable source)
containsAll in interface org.eclipse.collections.api.ByteIterablepublic void clear()
clear in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic boolean equals(Object otherStack)
public int hashCode()
public String toString()
public String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.list.primitive.MutableByteList toList()
toList in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.list.primitive.MutableByteList toSortedList()
toSortedList in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.set.primitive.MutableByteSet toSet()
toSet in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.bag.primitive.MutableByteBag toBag()
toBag in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.LazyByteIterable asLazy()
asLazy in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.stack.primitive.MutableByteStack asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic org.eclipse.collections.api.stack.primitive.MutableByteStack asSynchronized()
asSynchronized in interface org.eclipse.collections.api.stack.primitive.MutableByteStackpublic org.eclipse.collections.api.stack.primitive.ImmutableByteStack toImmutable()
toImmutable in interface org.eclipse.collections.api.stack.primitive.ByteStackpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2017. All rights reserved.