Class AbstractByteStack
- java.lang.Object
-
- org.eclipse.collections.impl.stack.primitive.AbstractByteStack
-
- All Implemented Interfaces:
ByteIterable,OrderedByteIterable,PrimitiveIterable,ByteStack
- Direct Known Subclasses:
ByteArrayStack
public abstract class AbstractByteStack extends Object implements ByteStack
This file was automatically generated from template file abstractPrimitiveStack.stg.
-
-
Constructor Summary
Constructors Constructor Description AbstractByteStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(BytePredicate predicate)booleananySatisfy(BytePredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyByteIterableasLazy()doubleaverage()ByteIteratorbyteIterator()RichIterable<ByteIterable>chunk(int size)booleancontains(byte value)booleancontainsAll(byte... source)booleancontainsAll(ByteIterable source)intcount(BytePredicate predicate)bytedetectIfNone(BytePredicate predicate, byte ifNone)voideach(ByteProcedure procedure)booleanequals(Object otherStack)voidforEachWithIndex(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)StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)bytemax()bytemaxIfEmpty(byte defaultValue)doublemedian()bytemin()byteminIfEmpty(byte defaultValue)booleannoneSatisfy(BytePredicate predicate)bytepeek()ByteListpeek(int count)bytepeekAt(int index)intsize()longsum()byte[]toArray()byte[]toArray(byte[] target)MutableByteBagtoBag()MutableByteListtoList()MutableByteSettoSet()byte[]toSortedArray()StringtoString()-
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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.stack.primitive.ByteStack
collect, collectWithIndex, reject, rejectWithIndex, select, selectWithIndex, tap, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterable
collectWithIndex, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
isEmpty, notEmpty
-
-
-
-
Method Detail
-
byteIterator
public ByteIterator byteIterator()
- Specified by:
byteIteratorin interfaceByteIterable
-
each
public void each(ByteProcedure procedure)
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
count
public int count(BytePredicate predicate)
- Specified by:
countin interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfyin interfaceByteIterable
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- 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
public boolean containsAll(ByteIterable source)
- Specified by:
containsAllin interfaceByteIterable
-
toList
public MutableByteList toList()
- Specified by:
toListin interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSetin interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBagin interfaceByteIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectByteToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceByteIterable
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazyin interfaceByteIterable
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
equals
public boolean equals(Object otherStack)
-
hashCode
public int hashCode()
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- 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
public void forEachWithIndex(ByteIntProcedure procedure)
- Specified by:
forEachWithIndexin interfaceOrderedByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- 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
-
-