Class AbstractByteStack
java.lang.Object
org.eclipse.collections.impl.stack.primitive.AbstractByteStack
- All Implemented Interfaces:
ByteIterable,OrderedByteIterable,PrimitiveIterable,ByteStack
- Direct Known Subclasses:
ByteArrayStack
This file was automatically generated from template file abstractPrimitiveStack.stg.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(BytePredicate predicate) booleananySatisfy(BytePredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) booleancontains(byte value) booleancontainsAll(byte... source) booleancontainsAll(ByteIterable source) intcount(BytePredicate predicate) bytedetectIfNone(BytePredicate predicate, byte ifNone) voideach(ByteProcedure procedure) booleanvoidforEachWithIndex(ByteIntProcedure procedure) bytegetFirst()inthashCode()intindexOf(byte value) <V> VinjectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) <T> TinjectIntoWithIndex(T injectedValue, ObjectByteIntToObjectFunction<? super T, ? extends T> function) makeString(String separator) makeString(String start, String separator, String end) bytemax()bytemaxIfEmpty(byte defaultValue) doublemedian()bytemin()byteminIfEmpty(byte defaultValue) booleannoneSatisfy(BytePredicate predicate) bytepeek()peek(int count) bytepeekAt(int index) intsize()longsum()byte[]toArray()byte[]toArray(byte[] target) toBag()toList()toSet()byte[]toString()Methods inherited from interface org.eclipse.collections.api.ByteIterable
averageIfEmpty, 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, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.stack.primitive.ByteStack
collect, collectWithIndex, reject, rejectWithIndex, select, selectWithIndex, tap, toImmutableMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterable
collectWithIndex, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
isEmpty, notEmpty
-
Constructor Details
-
AbstractByteStack
public AbstractByteStack()
-
-
Method Details
-
peek
public byte peek() -
peek
-
peekAt
public byte peekAt(int index) -
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable
-
each
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceByteIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceByteIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceByteIterable
-
toArray
public byte[] toArray()- Specified by:
toArrayin interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target) - Specified by:
toArrayin interfaceByteIterable
-
contains
public boolean contains(byte value) - Specified by:
containsin interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source) - Specified by:
containsAllin interfaceByteIterable
-
containsAll
- Specified by:
containsAllin interfaceByteIterable
-
toList
- Specified by:
toListin interfaceByteIterable
-
toSet
- Specified by:
toSetin interfaceByteIterable
-
toBag
- Specified by:
toBagin interfaceByteIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceByteIterable
-
asLazy
- Specified by:
asLazyin interfaceByteIterable
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
getFirst
public byte getFirst()- Specified by:
getFirstin interfaceOrderedByteIterable
-
indexOf
public int indexOf(byte value) - Specified by:
indexOfin interfaceOrderedByteIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectByteIntToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoWithIndexin interfaceOrderedByteIterable
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceOrderedByteIterable
-
chunk
- Specified by:
chunkin interfaceByteIterable
-
sum
public long sum()- Specified by:
sumin interfaceByteIterable
-
max
public byte max()- Specified by:
maxin interfaceByteIterable
-
min
public byte min()- Specified by:
minin interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue) - Specified by:
minIfEmptyin interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue) - Specified by:
maxIfEmptyin interfaceByteIterable
-
average
public double average()- Specified by:
averagein interfaceByteIterable
-
median
public double median()- Specified by:
medianin interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable
-