ByteIterable
, ByteList
, ImmutableByteCollection
, OrderedByteIterable
, PrimitiveIterable
, ReversibleByteIterable
public interface ImmutableByteList extends ImmutableByteCollection, ByteList
Modifier and Type | Method | Description |
---|---|---|
<V> ImmutableList<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> ImmutableList<V> |
collectWithIndex(ByteIntToObjectFunction<? extends V> function) |
Returns a new ImmutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
ImmutableByteList |
distinct() |
|
ImmutableByteList |
newWith(byte element) |
|
ImmutableByteList |
newWithAll(ByteIterable elements) |
|
ImmutableByteList |
newWithout(byte element) |
|
ImmutableByteList |
newWithoutAll(ByteIterable elements) |
|
ImmutableByteList |
reject(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
ImmutableByteList |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
ImmutableByteList |
subList(int fromIndex,
int toIndex) |
|
default ImmutableByteList |
tap(ByteProcedure procedure) |
|
ImmutableByteList |
toReversed() |
|
default <T> ImmutableList<ByteObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns an
ImmutableList formed from this ImmutableByteList and a ListIterable by
combining corresponding elements in pairs. |
default ImmutableList<ByteBytePair> |
zipByte(ByteIterable iterable) |
Returns an
ImmutableList formed from this ImmutableByteList and another ByteList by
combining corresponding elements in pairs. |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, byteIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
ImmutableByteList select(BytePredicate predicate)
ByteIterable
select
in interface ByteIterable
select
in interface ByteList
select
in interface ImmutableByteCollection
select
in interface OrderedByteIterable
select
in interface ReversibleByteIterable
ImmutableByteList reject(BytePredicate predicate)
ByteIterable
reject
in interface ByteIterable
reject
in interface ByteList
reject
in interface ImmutableByteCollection
reject
in interface OrderedByteIterable
reject
in interface ReversibleByteIterable
default ImmutableByteList tap(ByteProcedure procedure)
tap
in interface ByteIterable
tap
in interface ByteList
tap
in interface ImmutableByteCollection
<V> ImmutableList<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterable
collect
in interface ByteIterable
collect
in interface ByteList
collect
in interface ImmutableByteCollection
collect
in interface OrderedByteIterable
collect
in interface ReversibleByteIterable
default <V> ImmutableList<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex
in interface ByteList
collectWithIndex
in interface OrderedByteIterable
collectWithIndex
in interface ReversibleByteIterable
ImmutableByteList newWith(byte element)
newWith
in interface ImmutableByteCollection
ImmutableByteList newWithout(byte element)
newWithout
in interface ImmutableByteCollection
ImmutableByteList newWithAll(ByteIterable elements)
newWithAll
in interface ImmutableByteCollection
ImmutableByteList newWithoutAll(ByteIterable elements)
newWithoutAll
in interface ImmutableByteCollection
ImmutableByteList toReversed()
toReversed
in interface ByteList
toReversed
in interface ReversibleByteIterable
ImmutableByteList distinct()
distinct
in interface ByteList
distinct
in interface ReversibleByteIterable
ImmutableByteList subList(int fromIndex, int toIndex)
default ImmutableList<ByteBytePair> zipByte(ByteIterable iterable)
ImmutableList
formed from this ImmutableByteList
and another ByteList
by
combining corresponding elements in pairs. If one of the two ByteList
s is longer than the other, its
remaining elements are ignored.default <T> ImmutableList<ByteObjectPair<T>> zip(java.lang.Iterable<T> iterable)
ImmutableList
formed from this ImmutableByteList
and a ListIterable
by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.Copyright © 2004–2020. All rights reserved.