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.ImmutableByteList
distinct()
ImmutableByteList
newWith(byte element)
ImmutableByteList
newWithAll(ByteIterable elements)
ImmutableByteList
newWithout(byte element)
ImmutableByteList
newWithoutAll(ByteIterable elements)
ImmutableByteList
reject(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.ImmutableByteList
select(BytePredicate predicate)
Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.ImmutableByteList
subList(int fromIndex, int toIndex)
default ImmutableByteList
tap(ByteProcedure procedure)
ImmutableByteList
toReversed()
default <T> ImmutableList<ByteObjectPair<T>>
zip(Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableByteList
and aListIterable
by combining corresponding elements in pairs.default ImmutableList<ByteBytePair>
zipByte(ByteIterable iterable)
Returns anImmutableList
formed from thisImmutableByteList
and anotherByteList
by 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, toSortedList
Methods inherited from interface org.eclipse.collections.api.list.primitive.ByteList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, toImmutable
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedByteIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf
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 Details
-
select
Description copied from interface:ByteIterable
Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.- Specified by:
select
in interfaceByteIterable
- Specified by:
select
in interfaceByteList
- Specified by:
select
in interfaceImmutableByteCollection
- Specified by:
select
in interfaceOrderedByteIterable
- Specified by:
select
in interfaceReversibleByteIterable
-
reject
Description copied from interface:ByteIterable
Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.- Specified by:
reject
in interfaceByteIterable
- Specified by:
reject
in interfaceByteList
- Specified by:
reject
in interfaceImmutableByteCollection
- Specified by:
reject
in interfaceOrderedByteIterable
- Specified by:
reject
in interfaceReversibleByteIterable
-
tap
- Specified by:
tap
in interfaceByteIterable
- Specified by:
tap
in interfaceByteList
- Specified by:
tap
in interfaceImmutableByteCollection
- Since:
- 9.0.
-
collect
Description copied from interface:ByteIterable
Returns 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:
collect
in interfaceByteIterable
- Specified by:
collect
in interfaceByteList
- Specified by:
collect
in interfaceImmutableByteCollection
- Specified by:
collect
in interfaceOrderedByteIterable
- Specified by:
collect
in interfaceReversibleByteIterable
-
collectWithIndex
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceByteList
- Specified by:
collectWithIndex
in interfaceOrderedByteIterable
- Specified by:
collectWithIndex
in interfaceReversibleByteIterable
- Since:
- 9.1.
-
newWith
- Specified by:
newWith
in interfaceImmutableByteCollection
-
newWithout
- Specified by:
newWithout
in interfaceImmutableByteCollection
-
newWithAll
- Specified by:
newWithAll
in interfaceImmutableByteCollection
-
newWithoutAll
- Specified by:
newWithoutAll
in interfaceImmutableByteCollection
-
toReversed
ImmutableByteList toReversed()- Specified by:
toReversed
in interfaceByteList
- Specified by:
toReversed
in interfaceReversibleByteIterable
-
distinct
ImmutableByteList distinct()- Specified by:
distinct
in interfaceByteList
- Specified by:
distinct
in interfaceReversibleByteIterable
- Since:
- 6.0.
-
subList
- Specified by:
subList
in interfaceByteList
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipByte
Returns anImmutableList
formed from thisImmutableByteList
and anotherByteList
by combining corresponding elements in pairs. If one of the twoByteList
s is longer than the other, its remaining elements are ignored. -
zip
Returns anImmutableList
formed from thisImmutableByteList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-