ByteIterable
, LazyByteIterable
, PrimitiveIterable
public class SelectByteIterable extends AbstractLazyByteIterable
Constructor | Description |
---|---|
SelectByteIterable(ByteIterable delegate,
BytePredicate predicate) |
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.
|
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.
|
appendString, appendString, appendString, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, tap, toSortedArray, toSortedList, toString
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reject, select, summaryStatistics
public SelectByteIterable(ByteIterable delegate, BytePredicate predicate)
public ByteIterator byteIterator()
ByteIterable
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 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 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
Copyright © 2004–2017. All rights reserved.