Interface ImmutableIntList
-
- All Superinterfaces:
ImmutableIntCollection
,IntIterable
,IntList
,OrderedIntIterable
,PrimitiveIterable
,ReversibleIntIterable
- All Known Implementing Classes:
CodePointAdapter
,CodePointList
,ImmutableIntArrayList
,ImmutableIntEmptyList
,ImmutableIntSingletonList
,IntInterval
public interface ImmutableIntList extends ImmutableIntCollection, IntList
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(IntToObjectFunction<? 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(IntIntToObjectFunction<? extends V> function)
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.ImmutableIntList
distinct()
ImmutableIntList
newWith(int element)
ImmutableIntList
newWithAll(IntIterable elements)
ImmutableIntList
newWithout(int element)
ImmutableIntList
newWithoutAll(IntIterable elements)
ImmutableIntList
reject(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.default ImmutableIntList
rejectWithIndex(IntIntPredicate predicate)
Returns a new ImmutableIntList excluding all elements with corresponding indexes matching the specified predicate.ImmutableIntList
select(IntPredicate predicate)
Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.default ImmutableIntList
selectWithIndex(IntIntPredicate predicate)
Returns a new ImmutableIntList including all elements with corresponding indexes matching the specified predicate.ImmutableIntList
subList(int fromIndex, int toIndex)
default ImmutableIntList
tap(IntProcedure procedure)
ImmutableIntList
toReversed()
default <T> ImmutableList<IntObjectPair<T>>
zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableIntList
and aListIterable
by combining corresponding elements in pairs.default ImmutableList<IntIntPair>
zipInt(IntIterable iterable)
Returns anImmutableList
formed from thisImmutableIntList
and anotherIntList
by combining corresponding elements in pairs.-
Methods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, intIterator, 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.IntList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterable
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.ReversibleIntIterable
asReversed, getLast, injectIntoWithIndex
-
-
-
-
Method Detail
-
select
ImmutableIntList select(IntPredicate predicate)
Description copied from interface:IntIterable
Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.- Specified by:
select
in interfaceImmutableIntCollection
- Specified by:
select
in interfaceIntIterable
- Specified by:
select
in interfaceIntList
- Specified by:
select
in interfaceOrderedIntIterable
- Specified by:
select
in interfaceReversibleIntIterable
-
reject
ImmutableIntList reject(IntPredicate predicate)
Description copied from interface:IntIterable
Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.- Specified by:
reject
in interfaceImmutableIntCollection
- Specified by:
reject
in interfaceIntIterable
- Specified by:
reject
in interfaceIntList
- Specified by:
reject
in interfaceOrderedIntIterable
- Specified by:
reject
in interfaceReversibleIntIterable
-
tap
default ImmutableIntList tap(IntProcedure procedure)
- Specified by:
tap
in interfaceImmutableIntCollection
- Specified by:
tap
in interfaceIntIterable
- Specified by:
tap
in interfaceIntList
- Since:
- 9.0.
-
selectWithIndex
default ImmutableIntList selectWithIndex(IntIntPredicate predicate)
Returns a new ImmutableIntList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceIntList
- Specified by:
selectWithIndex
in interfaceOrderedIntIterable
- Specified by:
selectWithIndex
in interfaceReversibleIntIterable
- Since:
- 11.1.
-
rejectWithIndex
default ImmutableIntList rejectWithIndex(IntIntPredicate predicate)
Returns a new ImmutableIntList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceIntList
- Specified by:
rejectWithIndex
in interfaceOrderedIntIterable
- Specified by:
rejectWithIndex
in interfaceReversibleIntIterable
- Since:
- 11.1.
-
collect
<V> ImmutableList<V> collect(IntToObjectFunction<? extends V> function)
Description copied from interface:IntIterable
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 interfaceImmutableIntCollection
- Specified by:
collect
in interfaceIntIterable
- Specified by:
collect
in interfaceIntList
- Specified by:
collect
in interfaceOrderedIntIterable
- Specified by:
collect
in interfaceReversibleIntIterable
-
collectWithIndex
default <V> ImmutableList<V> collectWithIndex(IntIntToObjectFunction<? 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 interfaceIntList
- Specified by:
collectWithIndex
in interfaceOrderedIntIterable
- Specified by:
collectWithIndex
in interfaceReversibleIntIterable
- Since:
- 9.1.
-
newWith
ImmutableIntList newWith(int element)
- Specified by:
newWith
in interfaceImmutableIntCollection
-
newWithout
ImmutableIntList newWithout(int element)
- Specified by:
newWithout
in interfaceImmutableIntCollection
-
newWithAll
ImmutableIntList newWithAll(IntIterable elements)
- Specified by:
newWithAll
in interfaceImmutableIntCollection
-
newWithoutAll
ImmutableIntList newWithoutAll(IntIterable elements)
- Specified by:
newWithoutAll
in interfaceImmutableIntCollection
-
toReversed
ImmutableIntList toReversed()
- Specified by:
toReversed
in interfaceIntList
- Specified by:
toReversed
in interfaceReversibleIntIterable
-
distinct
ImmutableIntList distinct()
- Specified by:
distinct
in interfaceIntList
- Specified by:
distinct
in interfaceReversibleIntIterable
- Since:
- 6.0.
-
subList
ImmutableIntList subList(int fromIndex, int toIndex)
-
zipInt
default ImmutableList<IntIntPair> zipInt(IntIterable iterable)
Returns anImmutableList
formed from thisImmutableIntList
and anotherIntList
by combining corresponding elements in pairs. If one of the twoIntList
s is longer than the other, its remaining elements are ignored.
-
zip
default <T> ImmutableList<IntObjectPair<T>> zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableIntList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-
-