public interface ByteList extends ReversibleByteIterable
| Modifier and Type | Method and 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(Object o)
Follows the same general contract as
List.equals(Object). |
default void |
forEachInBoth(ByteList other,
ByteByteProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.
|
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.
|
default ByteList |
rejectWithIndex(ByteIntPredicate predicate)
Returns a new ByteList excluding all elements with corresponding indexes matching 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.
|
default ByteList |
selectWithIndex(ByteIntPredicate predicate)
Returns a new ByteList including all elements with corresponding indexes matching 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(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. |
asReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, byteIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringbyte get(int index)
long dotProduct(ByteList list)
int binarySearch(byte value)
int lastIndexOf(byte value)
ByteList select(BytePredicate predicate)
ByteIterableselect in interface ByteIterableselect in interface OrderedByteIterableselect in interface ReversibleByteIterableByteList reject(BytePredicate predicate)
ByteIterablereject in interface ByteIterablereject in interface OrderedByteIterablereject in interface ReversibleByteIterabledefault ByteList tap(ByteProcedure procedure)
tap in interface ByteIterabledefault void forEachInBoth(ByteList other, ByteByteProcedure procedure)
default ByteList selectWithIndex(ByteIntPredicate predicate)
selectWithIndex in interface OrderedByteIterableselectWithIndex in interface ReversibleByteIterabledefault ByteList rejectWithIndex(ByteIntPredicate predicate)
rejectWithIndex in interface OrderedByteIterablerejectWithIndex in interface ReversibleByteIterable<V> ListIterable<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteIterablecollect in interface OrderedByteIterablecollect in interface ReversibleByteIterabledefault <V> ListIterable<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedByteIterablecollectWithIndex in interface ReversibleByteIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableByteList toImmutable()
ByteList distinct()
distinct in interface ReversibleByteIterableByteList toReversed()
toReversed in interface ReversibleByteIterableByteList 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 ByteLists is longer than the other, its
remaining elements are ignored.default <T> ListIterable<ByteObjectPair<T>> zip(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–2023. All rights reserved.