Interface ImmutableLongList
-
- All Superinterfaces:
ImmutableLongCollection,LongIterable,LongList,OrderedLongIterable,PrimitiveIterable,ReversibleLongIterable
public interface ImmutableLongList extends ImmutableLongCollection, LongList
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(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.ImmutableLongListdistinct()ImmutableLongListnewWith(long element)ImmutableLongListnewWithAll(LongIterable elements)ImmutableLongListnewWithout(long element)ImmutableLongListnewWithoutAll(LongIterable elements)ImmutableLongListreject(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.ImmutableLongListselect(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.ImmutableLongListsubList(int fromIndex, int toIndex)default ImmutableLongListtap(LongProcedure procedure)ImmutableLongListtoReversed()default <T> ImmutableList<LongObjectPair<T>>zip(Iterable<T> iterable)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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.LongList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator, toImmutable
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterable
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.ReversibleLongIterable
asReversed, getLast, injectIntoWithIndex
-
-
-
-
Method Detail
-
select
ImmutableLongList select(LongPredicate predicate)
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
ImmutableLongList reject(LongPredicate predicate)
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
default ImmutableLongList tap(LongProcedure procedure)
- Specified by:
tapin interfaceImmutableLongCollection- Specified by:
tapin interfaceLongIterable- Specified by:
tapin interfaceLongList- Since:
- 9.0.
-
selectWithIndex
default ImmutableLongList selectWithIndex(LongIntPredicate predicate)
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
default ImmutableLongList rejectWithIndex(LongIntPredicate predicate)
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
<V> ImmutableList<V> collect(LongToObjectFunction<? extends V> function)
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
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.- Specified by:
collectWithIndexin interfaceLongList- Specified by:
collectWithIndexin interfaceOrderedLongIterable- Specified by:
collectWithIndexin interfaceReversibleLongIterable- Since:
- 9.1.
-
newWith
ImmutableLongList newWith(long element)
- Specified by:
newWithin interfaceImmutableLongCollection
-
newWithout
ImmutableLongList newWithout(long element)
- Specified by:
newWithoutin interfaceImmutableLongCollection
-
newWithAll
ImmutableLongList newWithAll(LongIterable elements)
- Specified by:
newWithAllin interfaceImmutableLongCollection
-
newWithoutAll
ImmutableLongList newWithoutAll(LongIterable elements)
- 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
ImmutableLongList subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceLongList- See Also:
List.subList(int fromIndex, int toIndex)
-
zipLong
default ImmutableList<LongLongPair> zipLong(LongIterable iterable)
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
default <T> ImmutableList<LongObjectPair<T>> zip(Iterable<T> iterable)
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.
-
-