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
All Methods Instance Methods Abstract Methods Default Methods 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.default ImmutableByteListrejectWithIndex(ByteIntPredicate predicate)Returns a new ImmutableByteList excluding all elements with corresponding indexes matching 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.default ImmutableByteListselectWithIndex(ByteIntPredicate predicate)Returns a new ImmutableByteList including all elements with corresponding indexes matching 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, 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.ByteList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable
asReversed, getLast, injectIntoWithIndex
-
-
-
-
Method Detail
-
select
ImmutableByteList select(BytePredicate predicate)
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
ImmutableByteList reject(BytePredicate predicate)
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
default ImmutableByteList tap(ByteProcedure procedure)
- Specified by:
tapin interfaceByteIterable- Specified by:
tapin interfaceByteList- Specified by:
tapin interfaceImmutableByteCollection- Since:
- 9.0.
-
selectWithIndex
default ImmutableByteList selectWithIndex(ByteIntPredicate predicate)
Returns a new ImmutableByteList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceByteList- Specified by:
selectWithIndexin interfaceOrderedByteIterable- Specified by:
selectWithIndexin interfaceReversibleByteIterable- Since:
- 11.1.
-
rejectWithIndex
default ImmutableByteList rejectWithIndex(ByteIntPredicate predicate)
Returns a new ImmutableByteList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceByteList- Specified by:
rejectWithIndexin interfaceOrderedByteIterable- Specified by:
rejectWithIndexin interfaceReversibleByteIterable- Since:
- 11.1.
-
collect
<V> ImmutableList<V> collect(ByteToObjectFunction<? extends V> function)
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
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.- Specified by:
collectWithIndexin interfaceByteList- Specified by:
collectWithIndexin interfaceOrderedByteIterable- Specified by:
collectWithIndexin interfaceReversibleByteIterable- Since:
- 9.1.
-
newWith
ImmutableByteList newWith(byte element)
- Specified by:
newWithin interfaceImmutableByteCollection
-
newWithout
ImmutableByteList newWithout(byte element)
- Specified by:
newWithoutin interfaceImmutableByteCollection
-
newWithAll
ImmutableByteList newWithAll(ByteIterable elements)
- Specified by:
newWithAllin interfaceImmutableByteCollection
-
newWithoutAll
ImmutableByteList newWithoutAll(ByteIterable elements)
- 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
ImmutableByteList subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceByteList- See Also:
List.subList(int fromIndex, int toIndex)
-
zipByte
default ImmutableList<ByteBytePair> zipByte(ByteIterable iterable)
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
default <T> ImmutableList<ByteObjectPair<T>> zip(Iterable<T> iterable)
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.
-
-