public interface ImmutableLongList extends ImmutableLongCollection, LongList
| Modifier and Type | Method and 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(Iterable<T> iterable)
Returns an
ImmutableList formed from this ImmutableLongList and a ListIterable by
combining corresponding elements in pairs. |
default ImmutableList<LongLongPair> |
zipLong(LongIterable iterable)
Returns an
ImmutableList formed from this ImmutableLongList and another LongList by
combining corresponding elements in pairs. |
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator, toImmutableasReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexallSatisfy, 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, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableLongList select(LongPredicate predicate)
LongIterableselect in interface ImmutableLongCollectionselect in interface LongIterableselect in interface LongListselect in interface OrderedLongIterableselect in interface ReversibleLongIterableImmutableLongList reject(LongPredicate predicate)
LongIterablereject in interface ImmutableLongCollectionreject in interface LongIterablereject in interface LongListreject in interface OrderedLongIterablereject in interface ReversibleLongIterabledefault ImmutableLongList tap(LongProcedure procedure)
tap in interface ImmutableLongCollectiontap in interface LongIterabletap in interface LongListdefault ImmutableLongList selectWithIndex(LongIntPredicate predicate)
selectWithIndex in interface LongListselectWithIndex in interface OrderedLongIterableselectWithIndex in interface ReversibleLongIterabledefault ImmutableLongList rejectWithIndex(LongIntPredicate predicate)
rejectWithIndex in interface LongListrejectWithIndex in interface OrderedLongIterablerejectWithIndex in interface ReversibleLongIterable<V> ImmutableList<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface ImmutableLongCollectioncollect in interface LongIterablecollect in interface LongListcollect in interface OrderedLongIterablecollect in interface ReversibleLongIterabledefault <V> ImmutableList<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex in interface LongListcollectWithIndex in interface OrderedLongIterablecollectWithIndex in interface ReversibleLongIterableImmutableLongList newWith(long element)
newWith in interface ImmutableLongCollectionImmutableLongList newWithout(long element)
newWithout in interface ImmutableLongCollectionImmutableLongList newWithAll(LongIterable elements)
newWithAll in interface ImmutableLongCollectionImmutableLongList newWithoutAll(LongIterable elements)
newWithoutAll in interface ImmutableLongCollectionImmutableLongList toReversed()
toReversed in interface LongListtoReversed in interface ReversibleLongIterableImmutableLongList distinct()
distinct in interface LongListdistinct in interface ReversibleLongIterableImmutableLongList subList(int fromIndex, int toIndex)
subList in interface LongListList.subList(int fromIndex, int toIndex)default ImmutableList<LongLongPair> zipLong(LongIterable iterable)
ImmutableList formed from this ImmutableLongList and another LongList by
combining corresponding elements in pairs. If one of the two LongLists is longer than the other, its
remaining elements are ignored.default <T> ImmutableList<LongObjectPair<T>> zip(Iterable<T> iterable)
ImmutableList formed from this ImmutableLongList and a ListIterable by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.Copyright © 2004–2022. All rights reserved.