public class SynchronizedByteIterable extends Object implements ByteIterable, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(BytePredicate predicate) |
boolean |
anySatisfy(BytePredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyByteIterable |
asLazy() |
double |
average() |
ByteIterator |
byteIterator()
Must be called in a synchronized block.
|
RichIterable<ByteIterable> |
chunk(int size) |
<V> RichIterable<V> |
collect(ByteToObjectFunction<? extends V> function) |
boolean |
contains(byte value) |
boolean |
containsAll(byte... source) |
boolean |
containsAll(ByteIterable source) |
boolean |
containsAny(byte... source) |
boolean |
containsAny(ByteIterable source) |
boolean |
containsNone(byte... source) |
boolean |
containsNone(ByteIterable source) |
int |
count(BytePredicate predicate) |
byte |
detectIfNone(BytePredicate predicate,
byte ifNone) |
void |
each(ByteProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
byte |
max() |
byte |
maxIfEmpty(byte defaultValue) |
double |
median() |
byte |
min() |
byte |
minIfEmpty(byte defaultValue) |
boolean |
noneSatisfy(BytePredicate predicate) |
boolean |
notEmpty() |
static SynchronizedByteIterable |
of(ByteIterable iterable)
This method will take a ByteIterable and wrap it directly in a SynchronizedByteIterable.
|
static SynchronizedByteIterable |
of(ByteIterable iterable,
Object lock)
This method will take a ByteIterable and wrap it directly in a SynchronizedByteIterable.
|
long |
reduce(LongByteToLongFunction accumulator) |
long |
reduceIfEmpty(LongByteToLongFunction accumulator,
long defaultValue) |
ByteIterable |
reject(BytePredicate predicate) |
ByteIterable |
select(BytePredicate predicate) |
int |
size() |
long |
sum() |
byte[] |
toArray() |
byte[] |
toArray(byte[] target) |
MutableByteBag |
toBag() |
MutableByteList |
toList() |
MutableByteSet |
toSet() |
byte[] |
toSortedArray() |
MutableByteList |
toSortedList() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaverageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, tap, toSortedList, toSortedListBy, toSortedListBypublic static SynchronizedByteIterable of(ByteIterable iterable)
public static SynchronizedByteIterable of(ByteIterable iterable, Object lock)
public byte[] toArray()
toArray in interface ByteIterablepublic byte[] toArray(byte[] target)
toArray in interface ByteIterablepublic boolean contains(byte value)
contains in interface ByteIterablepublic boolean containsAll(byte... source)
containsAll in interface ByteIterablepublic boolean containsAll(ByteIterable source)
containsAll in interface ByteIterablepublic boolean containsAny(byte... source)
containsAny in interface ByteIterablepublic boolean containsAny(ByteIterable source)
containsAny in interface ByteIterablepublic boolean containsNone(byte... source)
containsNone in interface ByteIterablepublic boolean containsNone(ByteIterable source)
containsNone in interface ByteIterablepublic void each(ByteProcedure procedure)
each in interface ByteIterablepublic ByteIterable select(BytePredicate predicate)
select in interface ByteIterablepublic ByteIterable reject(BytePredicate predicate)
reject in interface ByteIterablepublic <V> RichIterable<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteIterablepublic byte detectIfNone(BytePredicate predicate, byte ifNone)
detectIfNone in interface ByteIterablepublic int count(BytePredicate predicate)
count in interface ByteIterablepublic boolean anySatisfy(BytePredicate predicate)
anySatisfy in interface ByteIterablepublic boolean allSatisfy(BytePredicate predicate)
allSatisfy in interface ByteIterablepublic boolean noneSatisfy(BytePredicate predicate)
noneSatisfy in interface ByteIterablepublic MutableByteList toList()
toList in interface ByteIterablepublic MutableByteSet toSet()
toSet in interface ByteIterablepublic MutableByteBag toBag()
toBag in interface ByteIterablepublic LazyByteIterable asLazy()
asLazy in interface ByteIterablepublic long sum()
sum in interface ByteIterablepublic byte max()
max in interface ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface ByteIterablepublic byte min()
min in interface ByteIterablepublic byte minIfEmpty(byte defaultValue)
minIfEmpty in interface ByteIterablepublic double average()
average in interface ByteIterablepublic double median()
median in interface ByteIterablepublic byte[] toSortedArray()
toSortedArray in interface ByteIterablepublic MutableByteList toSortedList()
toSortedList in interface ByteIterablepublic int size()
size in interface PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function)
injectInto in interface ByteIterablepublic long reduce(LongByteToLongFunction accumulator)
reduce in interface ByteIterablepublic long reduceIfEmpty(LongByteToLongFunction accumulator, long defaultValue)
reduceIfEmpty in interface ByteIterablepublic RichIterable<ByteIterable> chunk(int size)
chunk in interface ByteIterablepublic String toString()
toString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
makeString in interface PrimitiveIterablepublic String makeString(String separator)
makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface PrimitiveIterablepublic ByteIterator byteIterator()
byteIterator in interface ByteIterableCopyright © 2004–2022. All rights reserved.