public class UnmodifiableByteStack extends Object implements MutableByteStack, Serializable
| Constructor and Description |
|---|
UnmodifiableByteStack(MutableByteStack stack) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(BytePredicate predicate) |
boolean |
anySatisfy(BytePredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyByteIterable |
asLazy() |
MutableByteStack |
asSynchronized() |
MutableByteStack |
asUnmodifiable() |
double |
average() |
ByteIterator |
byteIterator() |
RichIterable<ByteIterable> |
chunk(int size) |
void |
clear() |
<V> MutableStack<V> |
collect(ByteToObjectFunction<? extends V> function) |
<V> MutableStack<V> |
collectWithIndex(ByteIntToObjectFunction<? extends V> function)
Returns a new MutableStack using results obtained by applying the specified function to each element
and its corresponding index.
|
<V,R extends Collection<V>> |
collectWithIndex(ByteIntToObjectFunction<? extends V> function,
R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
boolean |
contains(byte value) |
boolean |
containsAll(byte... source) |
boolean |
containsAll(ByteIterable source) |
int |
count(BytePredicate predicate) |
byte |
detectIfNone(BytePredicate predicate,
byte ifNone) |
void |
each(ByteProcedure procedure) |
boolean |
equals(Object otherStack) |
void |
forEachWithIndex(ByteIntProcedure procedure) |
byte |
getFirst() |
int |
hashCode() |
int |
indexOf(byte value) |
<T> T |
injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectByteIntToObjectFunction<? super T,? extends T> 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) |
MutableByteStack |
newEmpty() |
boolean |
noneSatisfy(BytePredicate predicate) |
boolean |
notEmpty() |
byte |
peek() |
ByteList |
peek(int count) |
byte |
peekAt(int index) |
byte |
pop() |
ByteList |
pop(int count) |
void |
push(byte item) |
MutableByteStack |
reject(BytePredicate predicate) |
MutableByteStack |
select(BytePredicate predicate) |
int |
size() |
long |
sum() |
byte[] |
toArray() |
byte[] |
toArray(byte[] target) |
MutableByteBag |
toBag() |
ImmutableByteStack |
toImmutable() |
MutableByteList |
toList() |
MutableByteSet |
toSet() |
byte[] |
toSortedArray() |
MutableByteList |
toSortedList() |
String |
toString() |
rejectWithIndex, selectWithIndex, taprejectWithIndex, selectWithIndexaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListBypublic UnmodifiableByteStack(MutableByteStack stack)
public void push(byte item)
push in interface MutableByteStackpublic byte pop()
pop in interface MutableByteStackpublic ByteList pop(int count)
pop in interface MutableByteStackpublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableByteStackpublic boolean contains(byte value)
contains in interface ByteIterablepublic boolean containsAll(byte... source)
containsAll in interface ByteIterablepublic boolean containsAll(ByteIterable source)
containsAll in interface ByteIterablepublic ByteIterator byteIterator()
byteIterator in interface ByteIterablepublic void each(ByteProcedure procedure)
each in interface ByteIterablepublic int count(BytePredicate predicate)
count in interface ByteIterablepublic boolean anySatisfy(BytePredicate predicate)
anySatisfy in interface ByteIterablepublic boolean allSatisfy(BytePredicate predicate)
allSatisfy in interface ByteIterablepublic boolean noneSatisfy(BytePredicate predicate)
noneSatisfy in interface ByteIterablepublic byte detectIfNone(BytePredicate predicate, byte ifNone)
detectIfNone in interface ByteIterablepublic MutableByteStack select(BytePredicate predicate)
select in interface ByteIterableselect in interface OrderedByteIterableselect in interface ByteStackselect in interface MutableByteStackpublic MutableByteStack reject(BytePredicate predicate)
reject in interface ByteIterablereject in interface OrderedByteIterablereject in interface ByteStackreject in interface MutableByteStackpublic <V> MutableStack<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablecollect in interface OrderedByteIterablecollect in interface ByteStackcollect in interface MutableByteStackpublic long sum()
sum in interface ByteIterablepublic byte max()
max in interface ByteIterablepublic byte min()
min in interface ByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface ByteIterablepublic double average()
average in interface ByteIterablepublic double median()
median in interface ByteIterablepublic MutableByteList toSortedList()
toSortedList in interface ByteIterablepublic byte[] toSortedArray()
toSortedArray in interface ByteIterablepublic byte[] toArray()
toArray in interface ByteIterablepublic byte[] toArray(byte[] target)
toArray in interface ByteIterablepublic String toString()
toString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic MutableByteList toList()
toList in interface ByteIterablepublic MutableByteSet toSet()
toSet in interface ByteIterablepublic MutableByteBag toBag()
toBag in interface ByteIterablepublic boolean equals(Object otherStack)
public int hashCode()
public LazyByteIterable asLazy()
asLazy in interface ByteIterablepublic MutableByteStack asUnmodifiable()
asUnmodifiable in interface MutableByteStackpublic MutableByteStack asSynchronized()
asSynchronized in interface MutableByteStackpublic ImmutableByteStack toImmutable()
toImmutable in interface ByteStackpublic MutableByteStack newEmpty()
newEmpty in interface MutableByteStackpublic <T> T injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function)
injectInto in interface ByteIterablepublic RichIterable<ByteIterable> chunk(int size)
chunk in interface ByteIterablepublic byte getFirst()
getFirst in interface OrderedByteIterablepublic int indexOf(byte value)
indexOf in interface OrderedByteIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectByteIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedByteIterablepublic void forEachWithIndex(ByteIntProcedure procedure)
forEachWithIndex in interface OrderedByteIterablepublic <V> MutableStack<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedByteIterablecollectWithIndex in interface ByteStackcollectWithIndex in interface MutableByteStackpublic <V,R extends Collection<V>> R collectWithIndex(ByteIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedByteIterableCopyright © 2004–2022. All rights reserved.