PrimitiveIterable
ByteBag
, ByteByteMap
, ByteList
, ByteSet
, ByteStack
, ByteValuesMap
, CharByteMap
, DoubleByteMap
, FloatByteMap
, ImmutableByteBag
, ImmutableByteByteMap
, ImmutableByteCollection
, ImmutableByteList
, ImmutableByteSet
, ImmutableByteStack
, ImmutableCharByteMap
, ImmutableDoubleByteMap
, ImmutableFloatByteMap
, ImmutableIntByteMap
, ImmutableLongByteMap
, ImmutableObjectByteMap<K>
, ImmutableShortByteMap
, IntByteMap
, LazyByteIterable
, LongByteMap
, MutableByteBag
, MutableByteByteMap
, MutableByteCollection
, MutableByteList
, MutableByteSet
, MutableByteStack
, MutableByteValuesMap
, MutableCharByteMap
, MutableDoubleByteMap
, MutableFloatByteMap
, MutableIntByteMap
, MutableLongByteMap
, MutableObjectByteMap<K>
, MutableShortByteMap
, ObjectByteMap<K>
, OrderedByteIterable
, ReversibleByteIterable
, ShortByteMap
AbstractByteIterable
, AbstractByteSet
, AbstractByteStack
, AbstractImmutableByteSet
, AbstractImmutableObjectByteMap
, AbstractLazyByteIterable
, AbstractMutableByteKeySet
, AbstractMutableByteValuesMap
, AbstractSynchronizedByteCollection
, AbstractUnmodifiableByteCollection
, ByteArrayList
, ByteArrayStack
, ByteByteHashMap
, ByteHashBag
, ByteHashSet
, CharByteHashMap
, CollectBooleanToByteIterable
, CollectByteIterable
, CollectByteToByteIterable
, CollectCharToByteIterable
, CollectDoubleToByteIterable
, CollectFloatToByteIterable
, CollectIntToByteIterable
, CollectLongToByteIterable
, CollectShortToByteIterable
, DoubleByteHashMap
, FloatByteHashMap
, IntByteHashMap
, LazyByteIterableAdapter
, LongByteHashMap
, ObjectByteHashMap
, ObjectByteHashMapWithHashingStrategy
, ReverseByteIterable
, SelectByteIterable
, ShortByteHashMap
, SynchronizedByteBag
, SynchronizedByteByteMap
, SynchronizedByteCollection
, SynchronizedByteIterable
, SynchronizedByteList
, SynchronizedByteSet
, SynchronizedByteStack
, SynchronizedCharByteMap
, SynchronizedDoubleByteMap
, SynchronizedFloatByteMap
, SynchronizedIntByteMap
, SynchronizedLongByteMap
, SynchronizedObjectByteMap
, SynchronizedShortByteMap
, TapByteIterable
, UnmodifiableByteBag
, UnmodifiableByteByteMap
, UnmodifiableByteCollection
, UnmodifiableByteList
, UnmodifiableByteSet
, UnmodifiableByteStack
, UnmodifiableCharByteMap
, UnmodifiableDoubleByteMap
, UnmodifiableFloatByteMap
, UnmodifiableIntByteMap
, UnmodifiableLongByteMap
, UnmodifiableObjectByteMap
, UnmodifiableShortByteMap
public interface ByteIterable extends PrimitiveIterable
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.
|
LazyByteIterable |
asLazy() |
Returns a LazyByteIterable adapter wrapping the source ByteIterable.
|
double |
average() |
|
default double |
averageIfEmpty(double defaultValue) |
|
ByteIterator |
byteIterator() |
Returns a primitive iterator that can be used to iterate over the ByteIterable in an
imperative style.
|
<V> RichIterable<V> |
collect(ByteToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V,R extends java.util.Collection<V>> |
collect(ByteToObjectFunction<? extends V> function,
R target) |
Same as
collect(ByteToObjectFunction) , only the results are added to the target Collection. |
default <R extends MutableBooleanCollection> |
collectBoolean(ByteToBooleanFunction function,
R target) |
Returns the target
MutableBooleanCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableByteCollection> |
collectByte(ByteToByteFunction function,
R target) |
Returns the target
MutableByteCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableCharCollection> |
collectChar(ByteToCharFunction function,
R target) |
Returns the target
MutableCharCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableDoubleCollection> |
collectDouble(ByteToDoubleFunction function,
R target) |
Returns the target
MutableDoubleCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableFloatCollection> |
collectFloat(ByteToFloatFunction function,
R target) |
Returns the target
MutableFloatCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableIntCollection> |
collectInt(ByteToIntFunction function,
R target) |
Returns the target
MutableIntCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableLongCollection> |
collectLong(ByteToLongFunction function,
R target) |
Returns the target
MutableLongCollection with the results of applying the specified function on each element
of the source collection. |
default <R extends MutableShortCollection> |
collectShort(ByteToShortFunction function,
R target) |
Returns the target
MutableShortCollection with the results of applying the specified function on each element
of the source collection. |
boolean |
contains(byte value) |
Returns true if the value is contained in the ByteIterable, and false if it is not.
|
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.
|
byte |
detectIfNone(BytePredicate predicate,
byte ifNone) |
|
void |
each(ByteProcedure procedure) |
A synonym for forEach.
|
default <V,R extends java.util.Collection<V>> |
flatCollect(ByteToObjectFunction<? extends java.lang.Iterable<V>> function,
R target) |
flatCollect is a special case of collect(ByteToObjectFunction) . |
void |
forEach(ByteProcedure procedure) |
Applies the ByteProcedure to each element in the ByteIterable.
|
<T> T |
injectInto(T injectedValue,
ObjectByteToObjectFunction<? super T,? extends T> function) |
|
byte |
max() |
|
byte |
maxIfEmpty(byte defaultValue) |
|
double |
median() |
|
default double |
medianIfEmpty(double defaultValue) |
|
byte |
min() |
|
byte |
minIfEmpty(byte defaultValue) |
|
boolean |
noneSatisfy(BytePredicate predicate) |
Returns true if none of the elements in the ByteIterable return true for the
specified predicate, otherwise returns false.
|
ByteIterable |
reject(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
default <R extends MutableByteCollection> |
reject(BytePredicate predicate,
R target) |
Same as
reject(BytePredicate) , only the results are added to the target MutableByteCollection. |
ByteIterable |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
default <R extends MutableByteCollection> |
select(BytePredicate predicate,
R target) |
Same as
select(BytePredicate) , only the results are added to the target MutableByteCollection. |
long |
sum() |
|
default java.util.IntSummaryStatistics |
summaryStatistics() |
|
default ByteIterable |
tap(ByteProcedure procedure) |
|
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() |
|
MutableByteList |
toSortedList() |
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ByteIterator byteIterator()
byte[] toArray()
boolean contains(byte value)
boolean containsAll(byte... source)
boolean containsAll(ByteIterable source)
void forEach(ByteProcedure procedure)
void each(ByteProcedure procedure)
default ByteIterable tap(ByteProcedure procedure)
ByteIterable select(BytePredicate predicate)
ByteIterable reject(BytePredicate predicate)
default <R extends MutableByteCollection> R select(BytePredicate predicate, R target)
select(BytePredicate)
, only the results are added to the target MutableByteCollection.default <R extends MutableByteCollection> R reject(BytePredicate predicate, R target)
reject(BytePredicate)
, only the results are added to the target MutableByteCollection.<V> RichIterable<V> collect(ByteToObjectFunction<? extends V> function)
default <V,R extends java.util.Collection<V>> R collect(ByteToObjectFunction<? extends V> function, R target)
collect(ByteToObjectFunction)
, only the results are added to the target Collection.default <V,R extends java.util.Collection<V>> R flatCollect(ByteToObjectFunction<? extends java.lang.Iterable<V>> function, R target)
flatCollect
is a special case of collect(ByteToObjectFunction)
. With collect
, when the ByteToObjectFunction
returns
a collection, the result is a collection of collections. flatCollect
outputs a single "flattened" collection
instead. This method is commonly called flatMap.default <R extends MutableBooleanCollection> R collectBoolean(ByteToBooleanFunction function, R target)
MutableBooleanCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableByteCollection> R collectByte(ByteToByteFunction function, R target)
MutableByteCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableCharCollection> R collectChar(ByteToCharFunction function, R target)
MutableCharCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableShortCollection> R collectShort(ByteToShortFunction function, R target)
MutableShortCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableIntCollection> R collectInt(ByteToIntFunction function, R target)
MutableIntCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableFloatCollection> R collectFloat(ByteToFloatFunction function, R target)
MutableFloatCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableLongCollection> R collectLong(ByteToLongFunction function, R target)
MutableLongCollection
with the results of applying the specified function on each element
of the source collection.default <R extends MutableDoubleCollection> R collectDouble(ByteToDoubleFunction function, R target)
MutableDoubleCollection
with the results of applying the specified function on each element
of the source collection.byte detectIfNone(BytePredicate predicate, byte ifNone)
int count(BytePredicate predicate)
boolean anySatisfy(BytePredicate predicate)
boolean allSatisfy(BytePredicate predicate)
boolean noneSatisfy(BytePredicate predicate)
MutableByteList toList()
MutableByteSet toSet()
MutableByteBag toBag()
LazyByteIterable asLazy()
<T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function)
long sum()
default java.util.IntSummaryStatistics summaryStatistics()
byte max()
byte maxIfEmpty(byte defaultValue)
byte min()
byte minIfEmpty(byte defaultValue)
double average()
default double averageIfEmpty(double defaultValue)
double median()
default double medianIfEmpty(double defaultValue)
byte[] toSortedArray()
MutableByteList toSortedList()
Copyright © 2004–2017. All rights reserved.