@ThreadSafe public final class SynchronizedLongList extends AbstractSynchronizedLongCollection implements org.eclipse.collections.api.list.primitive.MutableLongList
MutableLongList. It is imperative that the user manually synchronize on the collection when iterating over it using the
LongIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableLongList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
long... source) |
boolean |
addAllAtIndex(int index,
org.eclipse.collections.api.LongIterable source) |
void |
addAtIndex(int index,
long element) |
org.eclipse.collections.api.LazyLongIterable |
asLazy() |
org.eclipse.collections.api.LazyLongIterable |
asReversed() |
org.eclipse.collections.api.list.primitive.MutableLongList |
asSynchronized() |
org.eclipse.collections.api.list.primitive.MutableLongList |
asUnmodifiable() |
int |
binarySearch(long value) |
<V> org.eclipse.collections.api.list.MutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
org.eclipse.collections.api.list.primitive.MutableLongList |
distinct() |
long |
dotProduct(org.eclipse.collections.api.list.primitive.LongList list) |
boolean |
equals(Object otherList) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure) |
long |
get(int index) |
long |
getFirst() |
long |
getLast() |
int |
hashCode() |
int |
indexOf(long value) |
<T> T |
injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(long value) |
org.eclipse.collections.api.list.primitive.MutableLongList |
reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
removeAtIndex(int index) |
org.eclipse.collections.api.list.primitive.MutableLongList |
reverseThis() |
org.eclipse.collections.api.list.primitive.MutableLongList |
select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
set(int index,
long element) |
org.eclipse.collections.api.list.primitive.MutableLongList |
sortThis() |
org.eclipse.collections.api.list.primitive.MutableLongList |
subList(int fromIndex,
int toIndex) |
org.eclipse.collections.api.list.primitive.ImmutableLongList |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableLongList |
toReversed() |
SynchronizedLongList |
with(long element) |
SynchronizedLongList |
withAll(org.eclipse.collections.api.LongIterable elements) |
SynchronizedLongList |
without(long element) |
SynchronizedLongList |
withoutAll(org.eclipse.collections.api.LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic long get(int index)
get in interface org.eclipse.collections.api.list.primitive.LongListpublic long getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablepublic long getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic int indexOf(long value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablepublic int lastIndexOf(long value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.LongListpublic void addAtIndex(int index,
long element)
addAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
long... source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
org.eclipse.collections.api.LongIterable source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic long removeAtIndex(int index)
removeAtIndex in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic long set(int index,
long element)
set in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic SynchronizedLongList with(long element)
with in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwith in interface org.eclipse.collections.api.list.primitive.MutableLongListwith in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList without(long element)
without in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithout in interface org.eclipse.collections.api.list.primitive.MutableLongListwithout in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList withAll(org.eclipse.collections.api.LongIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithAll in interface org.eclipse.collections.api.list.primitive.MutableLongListwithAll in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList withoutAll(org.eclipse.collections.api.LongIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionwithoutAll in interface org.eclipse.collections.api.list.primitive.MutableLongListwithoutAll in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.list.primitive.MutableLongList select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionselect in interface org.eclipse.collections.api.list.primitive.LongListselect in interface org.eclipse.collections.api.list.primitive.MutableLongListselect in interface org.eclipse.collections.api.LongIterableselect in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterableselect in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.list.primitive.MutableLongList reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionreject in interface org.eclipse.collections.api.list.primitive.LongListreject in interface org.eclipse.collections.api.list.primitive.MutableLongListreject in interface org.eclipse.collections.api.LongIterablereject in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablereject in class AbstractSynchronizedLongCollectionpublic <V> org.eclipse.collections.api.list.MutableList<V> collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectioncollect in interface org.eclipse.collections.api.list.primitive.LongListcollect in interface org.eclipse.collections.api.list.primitive.MutableLongListcollect in interface org.eclipse.collections.api.LongIterablecollect in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablecollect in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.list.primitive.MutableLongList sortThis()
sortThis in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic int binarySearch(long value)
binarySearch in interface org.eclipse.collections.api.list.primitive.LongListpublic long dotProduct(org.eclipse.collections.api.list.primitive.LongList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.LongListpublic boolean equals(Object otherList)
public int hashCode()
public org.eclipse.collections.api.LazyLongIterable asLazy()
asLazy in interface org.eclipse.collections.api.LongIterableasLazy in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.list.primitive.MutableLongList asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in interface org.eclipse.collections.api.list.primitive.MutableLongListasUnmodifiable in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.list.primitive.MutableLongList asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionasSynchronized in interface org.eclipse.collections.api.list.primitive.MutableLongListasSynchronized in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.list.primitive.ImmutableLongList toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectiontoImmutable in interface org.eclipse.collections.api.list.primitive.LongListtoImmutable in interface org.eclipse.collections.api.list.primitive.MutableLongListtoImmutable in class AbstractSynchronizedLongCollectionpublic org.eclipse.collections.api.list.primitive.MutableLongList reverseThis()
reverseThis in interface org.eclipse.collections.api.list.primitive.MutableLongListpublic org.eclipse.collections.api.list.primitive.MutableLongList toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.LongListtoReversed in interface org.eclipse.collections.api.list.primitive.MutableLongListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic org.eclipse.collections.api.LazyLongIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.LongIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterablepublic <T> T injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedLongIterableinjectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic org.eclipse.collections.api.list.primitive.MutableLongList distinct()
distinct in interface org.eclipse.collections.api.list.primitive.LongListdistinct in interface org.eclipse.collections.api.list.primitive.MutableLongListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleLongIterablepublic org.eclipse.collections.api.list.primitive.MutableLongList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.LongListsubList in interface org.eclipse.collections.api.list.primitive.MutableLongListCopyright © 2004–2018. All rights reserved.