ByteIterable
, LazyByteIterable
, PrimitiveIterable
public 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, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics
public CollectByteIterable(LazyIterable<T> adapted, ByteFunction<? super T> function)
public ByteIterator byteIterator()
ByteIterable
public void forEach(ByteProcedure procedure)
ByteIterable
forEach
in interface ByteIterable
forEach
in class AbstractLazyByteIterable
public void each(ByteProcedure procedure)
ByteIterable
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 int count(BytePredicate predicate)
ByteIterable
count
in interface ByteIterable
count
in class AbstractLazyByteIterable
public boolean anySatisfy(BytePredicate predicate)
ByteIterable
anySatisfy
in interface ByteIterable
anySatisfy
in class AbstractLazyByteIterable
public boolean allSatisfy(BytePredicate predicate)
ByteIterable
allSatisfy
in interface ByteIterable
allSatisfy
in class AbstractLazyByteIterable
public boolean noneSatisfy(BytePredicate predicate)
ByteIterable
noneSatisfy
in interface ByteIterable
noneSatisfy
in class AbstractLazyByteIterable
public byte[] toArray()
ByteIterable
toArray
in interface ByteIterable
toArray
in class AbstractLazyByteIterable
public byte[] toSortedArray()
toSortedArray
in interface ByteIterable
toSortedArray
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 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
Copyright © 2004–2019. All rights reserved.