Interface ImmutableByteList
- All Superinterfaces:
ByteIterable,ByteList,ImmutableByteCollection,OrderedByteIterable,PrimitiveIterable,ReversibleByteIterable
public interface ImmutableByteList extends ImmutableByteCollection, ByteList
This file was automatically generated from template file immutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
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.ImmutableByteListdistinct()ImmutableByteListnewWith(byte element)ImmutableByteListnewWithAll(ByteIterable elements)ImmutableByteListnewWithout(byte element)ImmutableByteListnewWithoutAll(ByteIterable elements)ImmutableByteListreject(BytePredicate predicate)Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.ImmutableByteListselect(BytePredicate predicate)Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.ImmutableByteListsubList(int fromIndex, int toIndex)default ImmutableByteListtap(ByteProcedure procedure)ImmutableByteListtoReversed()default <T> ImmutableList<ByteObjectPair<T>>zip(Iterable<T> iterable)Returns anImmutableListformed from thisImmutableByteListand aListIterableby combining corresponding elements in pairs.default ImmutableList<ByteBytePair>zipByte(ByteIterable iterable)Returns anImmutableListformed from thisImmutableByteListand 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, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.list.primitive.ByteList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, toImmutableMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterable
collectWithIndex, forEachWithIndex, getFirst, indexOfMethods 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
-
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 interfaceByteList- Specified by:
selectin interfaceImmutableByteCollection- 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 interfaceByteList- Specified by:
rejectin interfaceImmutableByteCollection- Specified by:
rejectin interfaceOrderedByteIterable- Specified by:
rejectin interfaceReversibleByteIterable
-
tap
- Specified by:
tapin interfaceByteIterable- Specified by:
tapin interfaceByteList- Specified by:
tapin interfaceImmutableByteCollection- Since:
- 9.0.
-
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 interfaceByteList- Specified by:
collectin interfaceImmutableByteCollection- Specified by:
collectin interfaceOrderedByteIterable- Specified by:
collectin interfaceReversibleByteIterable
-
collectWithIndex
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceByteList- Specified by:
collectWithIndexin interfaceOrderedByteIterable- Specified by:
collectWithIndexin interfaceReversibleByteIterable- Since:
- 9.1.
-
newWith
- Specified by:
newWithin interfaceImmutableByteCollection
-
newWithout
- Specified by:
newWithoutin interfaceImmutableByteCollection
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableByteCollection
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableByteCollection
-
toReversed
ImmutableByteList toReversed()- Specified by:
toReversedin interfaceByteList- Specified by:
toReversedin interfaceReversibleByteIterable
-
distinct
ImmutableByteList distinct()- Specified by:
distinctin interfaceByteList- Specified by:
distinctin interfaceReversibleByteIterable- Since:
- 6.0.
-
subList
- Specified by:
subListin interfaceByteList- See Also:
List.subList(int fromIndex, int toIndex)
-
zipByte
Returns anImmutableListformed from thisImmutableByteListand anotherByteListby combining corresponding elements in pairs. If one of the twoByteLists is longer than the other, its remaining elements are ignored. -
zip
Returns anImmutableListformed from thisImmutableByteListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-