Interface ByteList
- All Superinterfaces:
ByteIterable,OrderedByteIterable,PrimitiveIterable,ReversibleByteIterable
- All Known Subinterfaces:
ImmutableByteList,MutableByteList
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionintbinarySearch(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.distinct()longdotProduct(ByteList list) booleanFollows the same general contract asList.equals(Object).default voidforEachInBoth(ByteList other, ByteByteProcedure procedure) This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.byteget(int index) inthashCode()Follows the same general contract asList.hashCode().intlastIndexOf(byte value) reject(BytePredicate predicate) Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.default ByteListrejectWithIndex(ByteIntPredicate predicate) Returns a new ByteList excluding all elements with corresponding indexes matching the specified predicate.select(BytePredicate predicate) Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.default ByteListselectWithIndex(ByteIntPredicate predicate) Returns a new ByteList including all elements with corresponding indexes matching the specified predicate.subList(int fromIndex, int toIndex) default ByteListtap(ByteProcedure procedure) Returns an immutable copy of this list.default <T> ListIterable<ByteObjectPair<T>>Returns aListIterableformed from thisByteListand aListIterableby combining corresponding elements in pairs.default ListIterable<ByteBytePair>zipByte(ByteIterable iterable) Returns aListIterableformed from thisByteListand anotherByteListby combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.ByteIterable
allSatisfy, 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
get
byte get(int index) -
dotProduct
-
binarySearch
int binarySearch(byte value) -
lastIndexOf
int lastIndexOf(byte value) -
select
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceOrderedByteIterable- Specified by:
selectin interfaceReversibleByteIterable
-
reject
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceOrderedByteIterable- Specified by:
rejectin interfaceReversibleByteIterable
-
tap
- Specified by:
tapin interfaceByteIterable- Since:
- 9.0.
-
forEachInBoth
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.- Since:
- 11.1
-
selectWithIndex
Returns a new ByteList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedByteIterable- Specified by:
selectWithIndexin interfaceReversibleByteIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new ByteList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedByteIterable- Specified by:
rejectWithIndexin interfaceReversibleByteIterable- Since:
- 11.1.
-
collect
Description copied from interface:ByteIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceOrderedByteIterable- Specified by:
collectin interfaceReversibleByteIterable
-
collectWithIndex
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceOrderedByteIterable- Specified by:
collectWithIndexin interfaceReversibleByteIterable- Since:
- 9.1.
-
equals
Follows the same general contract asList.equals(Object). -
hashCode
int hashCode()Follows the same general contract asList.hashCode(). -
toImmutable
ImmutableByteList toImmutable()Returns an immutable copy of this list. If the list is immutable, it returns itself. -
distinct
ByteList distinct()- Specified by:
distinctin interfaceReversibleByteIterable- Since:
- 6.0.
-
toReversed
ByteList toReversed()- Specified by:
toReversedin interfaceReversibleByteIterable- Since:
- 5.0.
-
subList
- Since:
- 5.0.
- See Also:
-
zipByte
Returns aListIterableformed from thisByteListand anotherByteListby combining corresponding elements in pairs. If one of the twoByteLists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
Returns aListIterableformed from thisByteListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-