Class ReverseByteIterable
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable
org.eclipse.collections.impl.lazy.primitive.ReverseByteIterable
- All Implemented Interfaces:
ByteIterable,LazyByteIterable,PrimitiveIterable
public class ReverseByteIterable extends AbstractLazyByteIterable
This file was automatically generated from template file reversePrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
ReverseIterable
-
Constructor Summary
Constructors Constructor Description ReverseByteIterable(ByteList newAdapted) -
Method Summary
Modifier and Type Method Description static ReverseByteIterableadapt(ByteList byteList)LazyByteIterableasLazy()Returns a LazyByteIterable adapter wrapping the source ByteIterable.doubleaverage()ByteIteratorbyteIterator()Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.booleancontains(byte value)Returns true if the value is contained in the ByteIterable, and false if it is not.booleancontainsAll(byte... source)Returns true if the all of the values specified in the source array are contained in the ByteIterable, and false if they are not.booleancontainsAll(ByteIterable source)Returns true if the all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.voideach(ByteProcedure procedure)A synonym for forEach.booleanisEmpty()Returns true if this iterable has zero items.bytemax()bytemaxIfEmpty(byte defaultValue)doublemedian()bytemin()byteminIfEmpty(byte defaultValue)booleannotEmpty()The English equivalent of !this.isEmpty()intsize()Returns the number of items in this iterable.longsum()byte[]toArray()Converts the ByteIterable to a primitive byte array.MutableByteBagtoBag()Converts the ByteIterable to a new MutableByteBag.MutableByteListtoList()Converts the ByteIterable to a new MutableByteList.MutableByteSettoSet()Converts the ByteIterable to a new MutableByteSet.byte[]toSortedArray()Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.ByteIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
adapt
-
byteIterator
Description copied from interface:ByteIterableReturns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style. -
each
Description copied from interface:ByteIterableA synonym for forEach.- Since:
- 7.0.
-
sum
public long sum()- Specified by:
sumin interfaceByteIterable- Overrides:
sumin classAbstractLazyByteIterable
-
max
public byte max()- Specified by:
maxin interfaceByteIterable- Overrides:
maxin classAbstractLazyByteIterable
-
min
public byte min()- Specified by:
minin interfaceByteIterable- Overrides:
minin classAbstractLazyByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)- Specified by:
minIfEmptyin interfaceByteIterable- Overrides:
minIfEmptyin classAbstractLazyByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)- Specified by:
maxIfEmptyin interfaceByteIterable- Overrides:
maxIfEmptyin classAbstractLazyByteIterable
-
average
public double average()- Specified by:
averagein interfaceByteIterable- Overrides:
averagein classAbstractLazyByteIterable
-
median
public double median()- Specified by:
medianin interfaceByteIterable- Overrides:
medianin classAbstractLazyByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable- Overrides:
toSortedArrayin classAbstractLazyByteIterable
-
toArray
public byte[] toArray()Description copied from interface:ByteIterableConverts the ByteIterable to a primitive byte array.- Specified by:
toArrayin interfaceByteIterable- Overrides:
toArrayin classAbstractLazyByteIterable
-
contains
public boolean contains(byte value)Description copied from interface:ByteIterableReturns true if the value is contained in the ByteIterable, and false if it is not.- Specified by:
containsin interfaceByteIterable- Overrides:
containsin classAbstractLazyByteIterable
-
containsAll
public boolean containsAll(byte... source)Description copied from interface:ByteIterableReturns true if the all of the values specified in the source array are contained in the ByteIterable, and false if they are not.- Specified by:
containsAllin interfaceByteIterable- Overrides:
containsAllin classAbstractLazyByteIterable
-
containsAll
Description copied from interface:ByteIterableReturns true if the all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.- Specified by:
containsAllin interfaceByteIterable- Overrides:
containsAllin classAbstractLazyByteIterable
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable- Overrides:
sizein classAbstractLazyByteIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
isEmptyin interfacePrimitiveIterable- Overrides:
isEmptyin classAbstractLazyByteIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable- Overrides:
notEmptyin classAbstractLazyByteIterable
-
toList
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteList.- Specified by:
toListin interfaceByteIterable- Overrides:
toListin classAbstractLazyByteIterable
-
toSet
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteSet.- Specified by:
toSetin interfaceByteIterable- Overrides:
toSetin classAbstractLazyByteIterable
-
toBag
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteBag.- Specified by:
toBagin interfaceByteIterable- Overrides:
toBagin classAbstractLazyByteIterable
-
asLazy
Description copied from interface:ByteIterableReturns a LazyByteIterable adapter wrapping the source ByteIterable.- Specified by:
asLazyin interfaceByteIterable- Overrides:
asLazyin classAbstractLazyByteIterable
-