Serializable, MutableLongCollection, LongList, MutableLongList, LongIterable, OrderedLongIterable, ReversibleLongIterable, PrimitiveIterablepublic 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 | Description |
|---|---|
SynchronizedLongList(MutableLongList list) |
|
SynchronizedLongList(MutableLongList list,
Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAllAtIndex(int index,
long... source) |
|
boolean |
addAllAtIndex(int index,
LongIterable source) |
|
void |
addAtIndex(int index,
long element) |
|
LazyLongIterable |
asLazy() |
Returns a LazyLongIterable adapter wrapping the source LongIterable.
|
LazyLongIterable |
asReversed() |
|
MutableLongList |
asSynchronized() |
|
MutableLongList |
asUnmodifiable() |
|
int |
binarySearch(long value) |
|
<V> MutableList<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.
|
<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) |
Follows the same general contract as
List.equals(Object). |
void |
forEachWithIndex(LongIntProcedure procedure) |
|
long |
get(int index) |
|
long |
getFirst() |
|
long |
getLast() |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode(). |
int |
indexOf(long value) |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(long value) |
|
MutableLongList |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
MutableLongList |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
long |
removeAtIndex(int index) |
|
MutableLongList |
reverseThis() |
|
MutableLongList |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
long |
set(int index,
long element) |
|
MutableLongList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
Spliterator.OfLong |
spliterator() |
This function needs to be synchronized manually
|
MutableLongList |
subList(int fromIndex,
int toIndex) |
|
ImmutableLongList |
toImmutable() |
Returns an immutable copy of this list.
|
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) |
Returns a
MutableList formed from this MutableLongList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<LongLongPair> |
zipLong(LongIterable iterable) |
Returns a
MutableList formed from this MutableLongList and another LongList by
combining corresponding elements in pairs. |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListprimitiveParallelStream, primitiveStreamadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, 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)
LongIterableselect in interface LongIterableselect in interface LongListselect in interface MutableLongCollectionselect in interface MutableLongListselect in interface OrderedLongIterableselect in interface ReversibleLongIterableselect in class AbstractSynchronizedLongCollectionpublic MutableLongList reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongListreject in interface MutableLongCollectionreject in interface MutableLongListreject in interface OrderedLongIterablereject in interface ReversibleLongIterablereject in class AbstractSynchronizedLongCollectionpublic <V> MutableList<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongListcollect in interface MutableLongCollectioncollect in interface MutableLongListcollect in interface OrderedLongIterablecollect in interface ReversibleLongIterablecollect in class AbstractSynchronizedLongCollectionpublic MutableLongList sortThis()
MutableLongListsortThis in interface MutableLongListpublic int binarySearch(long value)
binarySearch in interface LongListpublic long dotProduct(LongList list)
dotProduct in interface LongListpublic boolean equals(Object otherList)
LongListList.equals(Object).public int hashCode()
LongListList.hashCode().public LazyLongIterable asLazy()
LongIterableasLazy 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()
MutableLongListtoImmutable in interface LongListtoImmutable in interface MutableLongCollectiontoImmutable in interface MutableLongListtoImmutable in class AbstractSynchronizedLongCollectionpublic MutableLongList newEmpty()
MutableLongListnewEmpty 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 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 MutableLongListList.subList(int fromIndex, int toIndex)public MutableList<LongLongPair> zipLong(LongIterable iterable)
MutableLongListMutableList formed from this MutableLongList 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.zipLong in interface LongListzipLong in interface MutableLongListpublic <T> MutableList<LongObjectPair<T>> zip(Iterable<T> iterable)
MutableLongListMutableList formed from this MutableLongList 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.zip in interface LongListzip in interface MutableLongListpublic <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–2019. All rights reserved.