Interface ImmutableLongList
-
- All Superinterfaces:
ImmutableLongCollection
,LongIterable
,LongList
,OrderedLongIterable
,PrimitiveIterable
,ReversibleLongIterable
- All Known Implementing Classes:
ImmutableLongArrayList
,ImmutableLongEmptyList
,ImmutableLongSingletonList
,LongInterval
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.ImmutableLongList
distinct()
ImmutableLongList
newWith(long element)
ImmutableLongList
newWithAll(LongIterable elements)
ImmutableLongList
newWithout(long element)
ImmutableLongList
newWithoutAll(LongIterable elements)
ImmutableLongList
reject(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.default ImmutableLongList
rejectWithIndex(LongIntPredicate predicate)
Returns a new ImmutableLongList excluding all elements with corresponding indexes matching the specified predicate.ImmutableLongList
select(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.default ImmutableLongList
selectWithIndex(LongIntPredicate predicate)
Returns a new ImmutableLongList including all elements with corresponding indexes matching the specified predicate.ImmutableLongList
subList(int fromIndex, int toIndex)
default ImmutableLongList
tap(LongProcedure procedure)
ImmutableLongList
toReversed()
default <T> ImmutableList<LongObjectPair<T>>
zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableLongList
and aListIterable
by combining corresponding elements in pairs.default ImmutableList<LongLongPair>
zipLong(LongIterable iterable)
Returns anImmutableList
formed from thisImmutableLongList
and anotherLongList
by 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:LongIterable
Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.- Specified by:
select
in interfaceImmutableLongCollection
- Specified by:
select
in interfaceLongIterable
- Specified by:
select
in interfaceLongList
- Specified by:
select
in interfaceOrderedLongIterable
- Specified by:
select
in interfaceReversibleLongIterable
-
reject
ImmutableLongList reject(LongPredicate predicate)
Description copied from interface:LongIterable
Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.- Specified by:
reject
in interfaceImmutableLongCollection
- Specified by:
reject
in interfaceLongIterable
- Specified by:
reject
in interfaceLongList
- Specified by:
reject
in interfaceOrderedLongIterable
- Specified by:
reject
in interfaceReversibleLongIterable
-
tap
default ImmutableLongList tap(LongProcedure procedure)
- Specified by:
tap
in interfaceImmutableLongCollection
- Specified by:
tap
in interfaceLongIterable
- Specified by:
tap
in 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:
selectWithIndex
in interfaceLongList
- Specified by:
selectWithIndex
in interfaceOrderedLongIterable
- Specified by:
selectWithIndex
in 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:
rejectWithIndex
in interfaceLongList
- Specified by:
rejectWithIndex
in interfaceOrderedLongIterable
- Specified by:
rejectWithIndex
in interfaceReversibleLongIterable
- Since:
- 11.1.
-
collect
<V> ImmutableList<V> collect(LongToObjectFunction<? extends V> function)
Description copied from interface:LongIterable
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 interfaceImmutableLongCollection
- Specified by:
collect
in interfaceLongIterable
- Specified by:
collect
in interfaceLongList
- Specified by:
collect
in interfaceOrderedLongIterable
- Specified by:
collect
in 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:
collectWithIndex
in interfaceLongList
- Specified by:
collectWithIndex
in interfaceOrderedLongIterable
- Specified by:
collectWithIndex
in interfaceReversibleLongIterable
- Since:
- 9.1.
-
newWith
ImmutableLongList newWith(long element)
- Specified by:
newWith
in interfaceImmutableLongCollection
-
newWithout
ImmutableLongList newWithout(long element)
- Specified by:
newWithout
in interfaceImmutableLongCollection
-
newWithAll
ImmutableLongList newWithAll(LongIterable elements)
- Specified by:
newWithAll
in interfaceImmutableLongCollection
-
newWithoutAll
ImmutableLongList newWithoutAll(LongIterable elements)
- Specified by:
newWithoutAll
in interfaceImmutableLongCollection
-
toReversed
ImmutableLongList toReversed()
- Specified by:
toReversed
in interfaceLongList
- Specified by:
toReversed
in interfaceReversibleLongIterable
-
distinct
ImmutableLongList distinct()
- Specified by:
distinct
in interfaceLongList
- Specified by:
distinct
in interfaceReversibleLongIterable
- Since:
- 6.0.
-
subList
ImmutableLongList subList(int fromIndex, int toIndex)
-
zipLong
default ImmutableList<LongLongPair> zipLong(LongIterable iterable)
Returns anImmutableList
formed from thisImmutableLongList
and anotherLongList
by combining corresponding elements in pairs. If one of the twoLongList
s is longer than the other, its remaining elements are ignored.
-
zip
default <T> ImmutableList<LongObjectPair<T>> zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableLongList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-
-