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 ReverseByteIterable
adapt(ByteList byteList)
LazyByteIterable
asLazy()
Returns a LazyByteIterable adapter wrapping the source ByteIterable.double
average()
ByteIterator
byteIterator()
Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style.boolean
contains(byte value)
Returns true if the value is contained in the ByteIterable, and false if it is not.boolean
containsAll(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.boolean
containsAll(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.void
each(ByteProcedure procedure)
A synonym for forEach.boolean
isEmpty()
Returns true if this iterable has zero items.byte
max()
byte
maxIfEmpty(byte defaultValue)
double
median()
byte
min()
byte
minIfEmpty(byte defaultValue)
boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.long
sum()
byte[]
toArray()
Converts the ByteIterable to a primitive byte array.MutableByteBag
toBag()
Converts the ByteIterable to a new MutableByteBag.MutableByteList
toList()
Converts the ByteIterable to a new MutableByteList.MutableByteSet
toSet()
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, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:ByteIterable
Returns a primitive iterator that can be used to iterate over the ByteIterable in an imperative style. -
each
Description copied from interface:ByteIterable
A synonym for forEach.- Since:
- 7.0.
-
sum
public long sum()- Specified by:
sum
in interfaceByteIterable
- Overrides:
sum
in classAbstractLazyByteIterable
-
max
public byte max()- Specified by:
max
in interfaceByteIterable
- Overrides:
max
in classAbstractLazyByteIterable
-
min
public byte min()- Specified by:
min
in interfaceByteIterable
- Overrides:
min
in classAbstractLazyByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)- Specified by:
minIfEmpty
in interfaceByteIterable
- Overrides:
minIfEmpty
in classAbstractLazyByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)- Specified by:
maxIfEmpty
in interfaceByteIterable
- Overrides:
maxIfEmpty
in classAbstractLazyByteIterable
-
average
public double average()- Specified by:
average
in interfaceByteIterable
- Overrides:
average
in classAbstractLazyByteIterable
-
median
public double median()- Specified by:
median
in interfaceByteIterable
- Overrides:
median
in classAbstractLazyByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArray
in interfaceByteIterable
- Overrides:
toSortedArray
in classAbstractLazyByteIterable
-
toArray
public byte[] toArray()Description copied from interface:ByteIterable
Converts the ByteIterable to a primitive byte array.- Specified by:
toArray
in interfaceByteIterable
- Overrides:
toArray
in classAbstractLazyByteIterable
-
contains
public boolean contains(byte value)Description copied from interface:ByteIterable
Returns true if the value is contained in the ByteIterable, and false if it is not.- Specified by:
contains
in interfaceByteIterable
- Overrides:
contains
in classAbstractLazyByteIterable
-
containsAll
public boolean containsAll(byte... source)Description copied from interface:ByteIterable
Returns 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:
containsAll
in interfaceByteIterable
- Overrides:
containsAll
in classAbstractLazyByteIterable
-
containsAll
Description copied from interface:ByteIterable
Returns 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:
containsAll
in interfaceByteIterable
- Overrides:
containsAll
in classAbstractLazyByteIterable
-
size
public int size()Description copied from interface:PrimitiveIterable
Returns the number of items in this iterable.- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyByteIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterable
Returns true if this iterable has zero items.- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyByteIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyByteIterable
-
toList
Description copied from interface:ByteIterable
Converts the ByteIterable to a new MutableByteList.- Specified by:
toList
in interfaceByteIterable
- Overrides:
toList
in classAbstractLazyByteIterable
-
toSet
Description copied from interface:ByteIterable
Converts the ByteIterable to a new MutableByteSet.- Specified by:
toSet
in interfaceByteIterable
- Overrides:
toSet
in classAbstractLazyByteIterable
-
toBag
Description copied from interface:ByteIterable
Converts the ByteIterable to a new MutableByteBag.- Specified by:
toBag
in interfaceByteIterable
- Overrides:
toBag
in classAbstractLazyByteIterable
-
asLazy
Description copied from interface:ByteIterable
Returns a LazyByteIterable adapter wrapping the source ByteIterable.- Specified by:
asLazy
in interfaceByteIterable
- Overrides:
asLazy
in classAbstractLazyByteIterable
-