ByteIterable, LazyByteIterable, PrimitiveIterablepublic 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, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic ReverseByteIterable(ByteList newAdapted)
public static ReverseByteIterable adapt(ByteList byteList)
public ByteIterator byteIterator()
ByteIterablepublic void each(ByteProcedure procedure)
ByteIterablepublic long sum()
sum in interface ByteIterablesum in class AbstractLazyByteIterablepublic byte max()
max in interface ByteIterablemax in class AbstractLazyByteIterablepublic byte min()
min in interface ByteIterablemin in class AbstractLazyByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface ByteIterableminIfEmpty in class AbstractLazyByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface ByteIterablemaxIfEmpty in class AbstractLazyByteIterablepublic double average()
average in interface ByteIterableaverage in class AbstractLazyByteIterablepublic double median()
median in interface ByteIterablemedian in class AbstractLazyByteIterablepublic byte[] toSortedArray()
toSortedArray in interface ByteIterabletoSortedArray in class AbstractLazyByteIterablepublic byte[] toArray()
ByteIterabletoArray in interface ByteIterabletoArray in class AbstractLazyByteIterablepublic boolean contains(byte value)
ByteIterablecontains in interface ByteIterablecontains in class AbstractLazyByteIterablepublic boolean containsAll(byte... source)
ByteIterablecontainsAll in interface ByteIterablecontainsAll in class AbstractLazyByteIterablepublic boolean containsAll(ByteIterable source)
ByteIterablecontainsAll in interface ByteIterablecontainsAll in class AbstractLazyByteIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablesize in class AbstractLazyByteIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterableisEmpty in class AbstractLazyByteIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablenotEmpty in class AbstractLazyByteIterablepublic MutableByteList toList()
ByteIterabletoList in interface ByteIterabletoList in class AbstractLazyByteIterablepublic MutableByteSet toSet()
ByteIterabletoSet in interface ByteIterabletoSet in class AbstractLazyByteIterablepublic MutableByteBag toBag()
ByteIterabletoBag in interface ByteIterabletoBag in class AbstractLazyByteIterablepublic LazyByteIterable asLazy()
ByteIterableasLazy in interface ByteIterableasLazy in class AbstractLazyByteIterableCopyright © 2004–2019. All rights reserved.