ByteIterable
, LazyByteIterable
, PrimitiveIterable
public class ReverseByteIterable extends AbstractLazyByteIterable
ReverseIterable
Constructor | Description |
---|---|
ReverseByteIterable(ByteList newAdapted) |
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() |
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
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public ReverseByteIterable(ByteList newAdapted)
public static ReverseByteIterable adapt(ByteList byteList)
public ByteIterator byteIterator()
ByteIterable
public void each(ByteProcedure procedure)
ByteIterable
public long sum()
sum
in interface ByteIterable
sum
in class AbstractLazyByteIterable
public byte max()
max
in interface ByteIterable
max
in class AbstractLazyByteIterable
public byte min()
min
in interface ByteIterable
min
in class AbstractLazyByteIterable
public byte minIfEmpty(byte defaultValue)
minIfEmpty
in interface ByteIterable
minIfEmpty
in class AbstractLazyByteIterable
public byte maxIfEmpty(byte defaultValue)
maxIfEmpty
in interface ByteIterable
maxIfEmpty
in class AbstractLazyByteIterable
public double average()
average
in interface ByteIterable
average
in class AbstractLazyByteIterable
public double median()
median
in interface ByteIterable
median
in class AbstractLazyByteIterable
public byte[] toSortedArray()
toSortedArray
in interface ByteIterable
toSortedArray
in class AbstractLazyByteIterable
public byte[] toArray()
ByteIterable
toArray
in interface ByteIterable
toArray
in class AbstractLazyByteIterable
public boolean contains(byte value)
ByteIterable
contains
in interface ByteIterable
contains
in class AbstractLazyByteIterable
public boolean containsAll(byte... source)
ByteIterable
containsAll
in interface ByteIterable
containsAll
in class AbstractLazyByteIterable
public boolean containsAll(ByteIterable source)
ByteIterable
containsAll
in interface ByteIterable
containsAll
in class AbstractLazyByteIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
size
in class AbstractLazyByteIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
isEmpty
in class AbstractLazyByteIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
notEmpty
in class AbstractLazyByteIterable
public MutableByteList toList()
ByteIterable
toList
in interface ByteIterable
toList
in class AbstractLazyByteIterable
public MutableByteSet toSet()
ByteIterable
toSet
in interface ByteIterable
toSet
in class AbstractLazyByteIterable
public MutableByteBag toBag()
ByteIterable
toBag
in interface ByteIterable
toBag
in class AbstractLazyByteIterable
public LazyByteIterable asLazy()
ByteIterable
asLazy
in interface ByteIterable
asLazy
in class AbstractLazyByteIterable
Copyright © 2004–2019. All rights reserved.