public class SynchronizedLongList extends AbstractSynchronizedLongCollection implements MutableLongList
MutableLongList. It is imperative that the user manually synchronize on the on the
collection when iterating over it using an iterator or stream.
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableLongList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedLongList(MutableLongList list) |
SynchronizedLongList(MutableLongList list,
Object newLock) |
| 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 |
asLazy() |
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 |
forEachInBoth(LongList other,
LongLongProcedure procedure) |
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 |
shuffleThis(Random rnd) |
MutableLongList |
sortThis() |
MutableLongList |
sortThis(LongComparator comparator) |
<T> MutableLongList |
sortThisBy(LongToObjectFunction<T> function) |
<T> MutableLongList |
sortThisBy(LongToObjectFunction<T> function,
Comparator<? super T> comparator) |
Spliterator.OfLong |
spliterator()
This function needs to be synchronized manually
|
MutableLongList |
subList(int fromIndex,
int toIndex) |
ImmutableLongList |
toImmutable() |
MutableLongList |
toReversed() |
SynchronizedLongList |
with(long element) |
SynchronizedLongList |
withAll(LongIterable elements) |
SynchronizedLongList |
without(long element) |
SynchronizedLongList |
withoutAll(LongIterable elements) |
<T> MutableList<LongObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<LongLongPair> |
zipLong(LongIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, toStringswap, tapadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllprimitiveParallelStream, primitiveStreamallSatisfy, anySatisfy, 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 SynchronizedLongList(MutableLongList list)
public SynchronizedLongList(MutableLongList list, Object newLock)
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 SynchronizedLongList with(long element)
with in interface MutableLongCollectionwith in interface MutableLongListwith in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList without(long element)
without in interface MutableLongCollectionwithout in interface MutableLongListwithout in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList withAll(LongIterable elements)
withAll in interface MutableLongCollectionwithAll in interface MutableLongListwithAll in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectionwithoutAll in interface MutableLongListwithoutAll in class AbstractSynchronizedLongCollectionpublic 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 AbstractSynchronizedLongCollectionpublic 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 AbstractSynchronizedLongCollectionpublic <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 AbstractSynchronizedLongCollectionpublic MutableLongList sortThis()
sortThis in interface MutableLongListpublic MutableLongList sortThis(LongComparator comparator)
sortThis in interface MutableLongListpublic <T> MutableLongList sortThisBy(LongToObjectFunction<T> function)
sortThisBy in interface MutableLongListpublic <T> MutableLongList sortThisBy(LongToObjectFunction<T> function, Comparator<? super T> comparator)
sortThisBy in interface MutableLongListpublic MutableLongList shuffleThis()
shuffleThis in interface MutableLongListpublic MutableLongList shuffleThis(Random rnd)
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 LazyLongIterable asLazy()
asLazy in interface LongIterableasLazy in class AbstractSynchronizedLongCollectionpublic MutableLongList asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionasUnmodifiable in interface MutableLongListasUnmodifiable in class AbstractSynchronizedLongCollectionpublic MutableLongList asSynchronized()
asSynchronized in interface MutableLongCollectionasSynchronized in interface MutableLongListasSynchronized in class AbstractSynchronizedLongCollectionpublic ImmutableLongList toImmutable()
toImmutable in interface MutableLongCollectiontoImmutable in interface LongListtoImmutable in interface MutableLongListtoImmutable in class AbstractSynchronizedLongCollectionpublic 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 LazyLongIterable asReversed()
asReversed in interface ReversibleLongIterablepublic void forEachInBoth(LongList other, LongLongProcedure procedure)
forEachInBoth in interface LongListpublic void forEachWithIndex(LongIntProcedure procedure)
forEachWithIndex in interface OrderedLongIterablepublic <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.