Interface ImmutableByteList
-
- All Superinterfaces:
ByteIterable
,ByteList
,ImmutableByteCollection
,OrderedByteIterable
,PrimitiveIterable
,ReversibleByteIterable
- All Known Implementing Classes:
ImmutableByteArrayList
,ImmutableByteEmptyList
,ImmutableByteSingletonList
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.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.default ImmutableByteList
rejectWithIndex(ByteIntPredicate predicate)
Returns a new ImmutableByteList excluding all elements with corresponding indexes matching 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.default ImmutableByteList
selectWithIndex(ByteIntPredicate predicate)
Returns a new ImmutableByteList including all elements with corresponding indexes matching the specified predicate.ImmutableByteList
subList(int fromIndex, int toIndex)
default ImmutableByteList
tap(ByteProcedure procedure)
ImmutableByteList
toReversed()
default <T> ImmutableList<ByteObjectPair<T>>
zip(java.lang.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, 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: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
ImmutableByteList reject(BytePredicate predicate)
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
default ImmutableByteList tap(ByteProcedure procedure)
- Specified by:
tap
in interfaceByteIterable
- Specified by:
tap
in interfaceByteList
- Specified by:
tap
in 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:
selectWithIndex
in interfaceByteList
- Specified by:
selectWithIndex
in interfaceOrderedByteIterable
- Specified by:
selectWithIndex
in 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:
rejectWithIndex
in interfaceByteList
- Specified by:
rejectWithIndex
in interfaceOrderedByteIterable
- Specified by:
rejectWithIndex
in interfaceReversibleByteIterable
- Since:
- 11.1.
-
collect
<V> ImmutableList<V> collect(ByteToObjectFunction<? extends V> function)
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
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:
collectWithIndex
in interfaceByteList
- Specified by:
collectWithIndex
in interfaceOrderedByteIterable
- Specified by:
collectWithIndex
in interfaceReversibleByteIterable
- Since:
- 9.1.
-
newWith
ImmutableByteList newWith(byte element)
- Specified by:
newWith
in interfaceImmutableByteCollection
-
newWithout
ImmutableByteList newWithout(byte element)
- Specified by:
newWithout
in interfaceImmutableByteCollection
-
newWithAll
ImmutableByteList newWithAll(ByteIterable elements)
- Specified by:
newWithAll
in interfaceImmutableByteCollection
-
newWithoutAll
ImmutableByteList newWithoutAll(ByteIterable elements)
- 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
ImmutableByteList subList(int fromIndex, int toIndex)
-
zipByte
default ImmutableList<ByteBytePair> zipByte(ByteIterable iterable)
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
default <T> ImmutableList<ByteObjectPair<T>> zip(java.lang.Iterable<T> iterable)
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.
-
-