ByteIterable
, OrderedByteIterable
, PrimitiveIterable
, ReversibleByteIterable
ImmutableByteList
, MutableByteList
ByteArrayList
, SynchronizedByteList
, UnmodifiableByteList
public interface ByteList extends ReversibleByteIterable
Modifier and Type | Method | Description |
---|---|---|
int |
binarySearch(byte value) |
|
<V> ListIterable<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> ListIterable<V> |
collectWithIndex(ByteIntToObjectFunction<? extends V> function) |
Returns a new ListIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
ByteList |
distinct() |
|
long |
dotProduct(ByteList list) |
|
boolean |
equals(java.lang.Object o) |
Follows the same general contract as
List.equals(Object) . |
byte |
get(int index) |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
lastIndexOf(byte value) |
|
ByteList |
reject(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
ByteList |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
ByteList |
subList(int fromIndex,
int toIndex) |
|
default ByteList |
tap(ByteProcedure procedure) |
|
ImmutableByteList |
toImmutable() |
Returns an immutable copy of this list.
|
ByteList |
toReversed() |
|
default <T> ListIterable<ByteObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns a
ListIterable formed from this ByteList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<ByteBytePair> |
zipByte(ByteIterable iterable) |
Returns a
ListIterable formed from this ByteList 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
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
byte get(int index)
long dotProduct(ByteList list)
int binarySearch(byte value)
int lastIndexOf(byte value)
ByteList select(BytePredicate predicate)
ByteIterable
select
in interface ByteIterable
select
in interface OrderedByteIterable
select
in interface ReversibleByteIterable
ByteList reject(BytePredicate predicate)
ByteIterable
reject
in interface ByteIterable
reject
in interface OrderedByteIterable
reject
in interface ReversibleByteIterable
default ByteList tap(ByteProcedure procedure)
tap
in interface ByteIterable
<V> ListIterable<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterable
collect
in interface ByteIterable
collect
in interface OrderedByteIterable
collect
in interface ReversibleByteIterable
default <V> ListIterable<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedByteIterable
collectWithIndex
in interface ReversibleByteIterable
boolean equals(java.lang.Object o)
List.equals(Object)
.equals
in class java.lang.Object
int hashCode()
List.hashCode()
.hashCode
in class java.lang.Object
ImmutableByteList toImmutable()
ByteList distinct()
distinct
in interface ReversibleByteIterable
ByteList toReversed()
toReversed
in interface ReversibleByteIterable
ByteList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)
default ListIterable<ByteBytePair> zipByte(ByteIterable iterable)
ListIterable
formed from this ByteList
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> ListIterable<ByteObjectPair<T>> zip(java.lang.Iterable<T> iterable)
ListIterable
formed from this ByteList
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.