ByteIterable, LazyByteIterable, PrimitiveIterablepublic class CollectByteIterable<T> extends AbstractLazyByteIterable
| Constructor | Description |
|---|---|
CollectByteIterable(LazyIterable<T> adapted,
ByteFunction<? super T> function) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(BytePredicate predicate) |
Returns true if all of the elements in the ByteIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(BytePredicate predicate) |
Returns true if any of the elements in the ByteIterable return true for the
specified predicate, otherwise returns false.
|
ByteIterator |
byteIterator() |
Returns a primitive iterator that can be used to iterate over the ByteIterable in an
imperative style.
|
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.
|
int |
count(BytePredicate predicate) |
Returns a count of the number of elements in the ByteIterable that return true for the
specified predicate.
|
void |
each(ByteProcedure procedure) |
A synonym for forEach.
|
void |
forEach(ByteProcedure procedure) |
Applies the ByteProcedure to each element in the ByteIterable.
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(BytePredicate predicate) |
Returns true if none of the elements in the ByteIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
int |
size() |
Returns the number of items in this iterable.
|
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() |
appendString, appendString, appendString, asLazy, average, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedList, toStringaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatisticspublic CollectByteIterable(LazyIterable<T> adapted, ByteFunction<? super T> function)
public ByteIterator byteIterator()
ByteIterablepublic void forEach(ByteProcedure procedure)
ByteIterableforEach in interface ByteIterableforEach in class AbstractLazyByteIterablepublic void each(ByteProcedure procedure)
ByteIterablepublic 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 int count(BytePredicate predicate)
ByteIterablecount in interface ByteIterablecount in class AbstractLazyByteIterablepublic boolean anySatisfy(BytePredicate predicate)
ByteIterableanySatisfy in interface ByteIterableanySatisfy in class AbstractLazyByteIterablepublic boolean allSatisfy(BytePredicate predicate)
ByteIterableallSatisfy in interface ByteIterableallSatisfy in class AbstractLazyByteIterablepublic boolean noneSatisfy(BytePredicate predicate)
ByteIterablenoneSatisfy in interface ByteIterablenoneSatisfy in class AbstractLazyByteIterablepublic byte[] toArray()
ByteIterabletoArray in interface ByteIterabletoArray in class AbstractLazyByteIterablepublic byte[] toSortedArray()
toSortedArray in interface ByteIterabletoSortedArray 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 boolean containsAll(byte... source)
ByteIterablecontainsAll in interface ByteIterablecontainsAll in class AbstractLazyByteIterablepublic boolean containsAll(ByteIterable source)
ByteIterablecontainsAll in interface ByteIterablecontainsAll in class AbstractLazyByteIterableCopyright © 2004–2019. All rights reserved.