@Immutable public class CollectByteIterable<T> extends AbstractLazyByteIterable
Constructor and Description |
---|
CollectByteIterable(LazyIterable<T> adapted,
ByteFunction<? super T> function) |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(BytePredicate predicate) |
boolean |
anySatisfy(BytePredicate predicate) |
ByteIterator |
byteIterator() |
boolean |
containsAll(byte... source) |
boolean |
containsAll(ByteIterable source) |
int |
count(BytePredicate predicate) |
void |
each(ByteProcedure procedure) |
void |
forEach(ByteProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(BytePredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
int |
size()
Returns the number of items in this iterable.
|
byte[] |
toArray() |
MutableByteBag |
toBag() |
MutableByteList |
toList() |
MutableByteSet |
toSet() |
byte[] |
toSortedArray() |
appendString, appendString, appendString, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, detectIfNone, injectInto, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, reject, select, sum, toSortedList, toString
public CollectByteIterable(LazyIterable<T> adapted, ByteFunction<? super T> function)
public ByteIterator byteIterator()
public void forEach(ByteProcedure procedure)
forEach
in interface ByteIterable
forEach
in class AbstractLazyByteIterable
public void each(ByteProcedure procedure)
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)
count
in interface ByteIterable
count
in class AbstractLazyByteIterable
public boolean anySatisfy(BytePredicate predicate)
anySatisfy
in interface ByteIterable
anySatisfy
in class AbstractLazyByteIterable
public boolean allSatisfy(BytePredicate predicate)
allSatisfy
in interface ByteIterable
allSatisfy
in class AbstractLazyByteIterable
public boolean noneSatisfy(BytePredicate predicate)
noneSatisfy
in interface ByteIterable
noneSatisfy
in class AbstractLazyByteIterable
public byte[] toArray()
toArray
in interface ByteIterable
toArray
in class AbstractLazyByteIterable
public byte[] toSortedArray()
toSortedArray
in interface ByteIterable
toSortedArray
in class AbstractLazyByteIterable
public MutableByteList toList()
toList
in interface ByteIterable
toList
in class AbstractLazyByteIterable
public MutableByteSet toSet()
toSet
in interface ByteIterable
toSet
in class AbstractLazyByteIterable
public MutableByteBag toBag()
toBag
in interface ByteIterable
toBag
in class AbstractLazyByteIterable
public boolean containsAll(byte... source)
containsAll
in interface ByteIterable
containsAll
in class AbstractLazyByteIterable
public boolean containsAll(ByteIterable source)
containsAll
in interface ByteIterable
containsAll
in class AbstractLazyByteIterable
Copyright © 2004–2016. All rights reserved.