public class UnmodifiableLongList extends AbstractUnmodifiableLongCollection implements MutableLongList
| Constructor and Description |
|---|
UnmodifiableLongList(MutableLongList list) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
long... source) |
boolean |
addAllAtIndex(int index,
LongIterable source) |
void |
addAtIndex(int index,
long element) |
LazyLongIterable |
asReversed() |
MutableLongList |
asSynchronized() |
MutableLongList |
asUnmodifiable() |
int |
binarySearch(long value) |
<V> MutableList<V> |
collect(LongToObjectFunction<? extends V> function) |
<V> MutableList<V> |
collectWithIndex(LongIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
<V,R extends Collection<V>> |
collectWithIndex(LongIntToObjectFunction<? extends V> function,
R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableLongList |
distinct() |
long |
dotProduct(LongList list) |
boolean |
equals(Object otherList) |
void |
forEachWithIndex(LongIntProcedure procedure) |
long |
get(int index) |
long |
getFirst() |
long |
getLast() |
int |
hashCode() |
int |
indexOf(long value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(long value) |
MutableLongList |
newEmpty() |
MutableLongList |
reject(LongPredicate predicate) |
MutableLongList |
rejectWithIndex(LongIntPredicate predicate)
Returns a new MutableLongList excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableLongCollection> |
rejectWithIndex(LongIntPredicate predicate,
R target)
Returns a new MutableLongCollection excluding all elements with corresponding indexes matching the specified predicate.
|
long |
removeAtIndex(int index) |
MutableLongList |
reverseThis() |
MutableLongList |
select(LongPredicate predicate) |
MutableLongList |
selectWithIndex(LongIntPredicate predicate)
Returns a new MutableLongList including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableLongCollection> |
selectWithIndex(LongIntPredicate predicate,
R target)
Returns a new MutableLongCollection including all elements with corresponding indexes matching the specified predicate.
|
long |
set(int index,
long element) |
MutableLongList |
shuffleThis() |
MutableLongList |
sortThis() |
Spliterator.OfLong |
spliterator() |
MutableLongList |
subList(int fromIndex,
int toIndex) |
ImmutableLongList |
toImmutable() |
MutableLongList |
toReversed() |
UnmodifiableLongList |
with(long element) |
UnmodifiableLongList |
withAll(LongIterable elements) |
UnmodifiableLongList |
without(long element) |
UnmodifiableLongList |
withoutAll(LongIterable elements) |
<T> MutableList<LongObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<LongLongPair> |
zipLong(LongIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringshuffleThis, sortThis, sortThisBy, sortThisBy, swap, tapadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllforEachInBoth, primitiveParallelStream, primitiveStreamallSatisfy, 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, 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, toStringpublic UnmodifiableLongList(MutableLongList list)
public long getFirst()
getFirst in interface OrderedLongIterablepublic long getLast()
getLast in interface ReversibleLongIterablepublic int indexOf(long value)
indexOf in interface OrderedLongIterablepublic int lastIndexOf(long value)
lastIndexOf in interface LongListpublic void addAtIndex(int index,
long element)
addAtIndex in interface MutableLongListpublic boolean addAllAtIndex(int index,
long... source)
addAllAtIndex in interface MutableLongListpublic boolean addAllAtIndex(int index,
LongIterable source)
addAllAtIndex in interface MutableLongListpublic long removeAtIndex(int index)
removeAtIndex in interface MutableLongListpublic long set(int index,
long element)
set in interface MutableLongListpublic UnmodifiableLongList with(long element)
with in interface MutableLongCollectionwith in interface MutableLongListwith in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList without(long element)
without in interface MutableLongCollectionwithout in interface MutableLongListwithout in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList withAll(LongIterable elements)
withAll in interface MutableLongCollectionwithAll in interface MutableLongListwithAll in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectionwithoutAll in interface MutableLongListwithoutAll in class AbstractUnmodifiableLongCollectionpublic MutableLongList select(LongPredicate predicate)
select in interface MutableLongCollectionselect in interface LongListselect in interface MutableLongListselect in interface LongIterableselect in interface OrderedLongIterableselect in interface ReversibleLongIterableselect in class AbstractUnmodifiableLongCollectionpublic MutableLongList reject(LongPredicate predicate)
reject in interface MutableLongCollectionreject in interface LongListreject in interface MutableLongListreject in interface LongIterablereject in interface OrderedLongIterablereject in interface ReversibleLongIterablereject in class AbstractUnmodifiableLongCollectionpublic <V> MutableList<V> collect(LongToObjectFunction<? extends V> function)
collect in interface MutableLongCollectioncollect in interface LongListcollect in interface MutableLongListcollect in interface LongIterablecollect in interface OrderedLongIterablecollect in interface ReversibleLongIterablecollect in class AbstractUnmodifiableLongCollectionpublic MutableLongList sortThis()
sortThis in interface MutableLongListpublic MutableLongList shuffleThis()
shuffleThis in interface MutableLongListpublic int binarySearch(long value)
binarySearch in interface LongListpublic long dotProduct(LongList list)
dotProduct in interface LongListpublic boolean equals(Object otherList)
public int hashCode()
public MutableLongList asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionasUnmodifiable in interface MutableLongListasUnmodifiable in class AbstractUnmodifiableLongCollectionpublic MutableLongList asSynchronized()
asSynchronized in interface MutableLongCollectionasSynchronized in interface MutableLongListasSynchronized in class AbstractUnmodifiableLongCollectionpublic ImmutableLongList toImmutable()
toImmutable in interface MutableLongCollectiontoImmutable in interface LongListtoImmutable in interface MutableLongListtoImmutable in class AbstractUnmodifiableLongCollectionpublic MutableLongList newEmpty()
newEmpty in interface MutableLongCollectionnewEmpty in interface MutableLongListpublic MutableLongList reverseThis()
reverseThis in interface MutableLongListpublic MutableLongList toReversed()
toReversed in interface LongListtoReversed in interface MutableLongListtoReversed in interface ReversibleLongIterablepublic void forEachWithIndex(LongIntProcedure procedure)
forEachWithIndex in interface OrderedLongIterablepublic LazyLongIterable asReversed()
asReversed in interface ReversibleLongIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedLongIterableinjectIntoWithIndex in interface ReversibleLongIterablepublic MutableLongList distinct()
distinct in interface LongListdistinct in interface MutableLongListdistinct in interface ReversibleLongIterablepublic MutableLongList subList(int fromIndex, int toIndex)
subList in interface LongListsubList in interface MutableLongListpublic MutableList<LongLongPair> zipLong(LongIterable iterable)
zipLong in interface LongListzipLong in interface MutableLongListpublic <T> MutableList<LongObjectPair<T>> zip(Iterable<T> iterable)
zip in interface LongListzip in interface MutableLongListpublic MutableLongList selectWithIndex(LongIntPredicate predicate)
selectWithIndex in interface LongListselectWithIndex in interface MutableLongListselectWithIndex in interface OrderedLongIterableselectWithIndex in interface ReversibleLongIterablepublic <R extends MutableLongCollection> R selectWithIndex(LongIntPredicate predicate, R target)
selectWithIndex in interface OrderedLongIterablepublic MutableLongList rejectWithIndex(LongIntPredicate predicate)
rejectWithIndex in interface LongListrejectWithIndex in interface MutableLongListrejectWithIndex in interface OrderedLongIterablerejectWithIndex in interface ReversibleLongIterablepublic <R extends MutableLongCollection> R rejectWithIndex(LongIntPredicate predicate, R target)
rejectWithIndex in interface OrderedLongIterablepublic <V> MutableList<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex in interface LongListcollectWithIndex in interface MutableLongListcollectWithIndex in interface OrderedLongIterablecollectWithIndex in interface ReversibleLongIterablepublic <V,R extends Collection<V>> R collectWithIndex(LongIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedLongIterablepublic Spliterator.OfLong spliterator()
spliterator in interface LongListCopyright © 2004–2022. All rights reserved.