Interface ImmutableLongList
- All Superinterfaces:
ImmutableLongCollection,LongIterable,LongList,OrderedLongIterable,PrimitiveIterable,ReversibleLongIterable
- All Known Implementing Classes:
LongInterval
This file was automatically generated from template file immutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescription<V> ImmutableList<V>collect(LongToObjectFunction<? 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(LongIntToObjectFunction<? extends V> function) Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.distinct()newWith(long element) newWithAll(LongIterable elements) newWithout(long element) newWithoutAll(LongIterable elements) reject(LongPredicate predicate) Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.default ImmutableLongListrejectWithIndex(LongIntPredicate predicate) Returns a new ImmutableLongList excluding all elements with corresponding indexes matching the specified predicate.select(LongPredicate predicate) Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.default ImmutableLongListselectWithIndex(LongIntPredicate predicate) Returns a new ImmutableLongList including all elements with corresponding indexes matching the specified predicate.subList(int fromIndex, int toIndex) default ImmutableLongListtap(LongProcedure procedure) default <T> ImmutableList<LongObjectPair<T>>Returns anImmutableListformed from thisImmutableLongListand aListIterableby combining corresponding elements in pairs.default ImmutableList<LongLongPair>zipLong(LongIterable iterable) Returns anImmutableListformed from thisImmutableLongListand anotherLongListby combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.LongIterable
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, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.list.primitive.LongList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator, toImmutableMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexMethods 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.ReversibleLongIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
select
Description copied from interface:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.- Specified by:
selectin interfaceImmutableLongCollection- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceLongList- Specified by:
selectin interfaceOrderedLongIterable- Specified by:
selectin interfaceReversibleLongIterable
-
reject
Description copied from interface:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.- Specified by:
rejectin interfaceImmutableLongCollection- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceLongList- Specified by:
rejectin interfaceOrderedLongIterable- Specified by:
rejectin interfaceReversibleLongIterable
-
tap
- Specified by:
tapin interfaceImmutableLongCollection- Specified by:
tapin interfaceLongIterable- Specified by:
tapin interfaceLongList- Since:
- 9.0.
-
selectWithIndex
Returns a new ImmutableLongList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceLongList- Specified by:
selectWithIndexin interfaceOrderedLongIterable- Specified by:
selectWithIndexin interfaceReversibleLongIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new ImmutableLongList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceLongList- Specified by:
rejectWithIndexin interfaceOrderedLongIterable- Specified by:
rejectWithIndexin interfaceReversibleLongIterable- Since:
- 11.1.
-
collect
Description copied from interface:LongIterableReturns 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 interfaceImmutableLongCollection- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceLongList- Specified by:
collectin interfaceOrderedLongIterable- Specified by:
collectin interfaceReversibleLongIterable
-
collectWithIndex
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceLongList- Specified by:
collectWithIndexin interfaceOrderedLongIterable- Specified by:
collectWithIndexin interfaceReversibleLongIterable- Since:
- 9.1.
-
newWith
- Specified by:
newWithin interfaceImmutableLongCollection
-
newWithout
- Specified by:
newWithoutin interfaceImmutableLongCollection
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableLongCollection
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableLongCollection
-
toReversed
ImmutableLongList toReversed()- Specified by:
toReversedin interfaceLongList- Specified by:
toReversedin interfaceReversibleLongIterable
-
distinct
ImmutableLongList distinct()- Specified by:
distinctin interfaceLongList- Specified by:
distinctin interfaceReversibleLongIterable- Since:
- 6.0.
-
subList
-
zipLong
Returns anImmutableListformed from thisImmutableLongListand anotherLongListby combining corresponding elements in pairs. If one of the twoLongLists is longer than the other, its remaining elements are ignored. -
zip
Returns anImmutableListformed from thisImmutableLongListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-