@ThreadSafe public final class SynchronizedLongList extends AbstractSynchronizedLongCollection implements com.gs.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,
com.gs.collections.api.LongIterable source) |
void |
addAtIndex(int index,
long element) |
com.gs.collections.api.LazyLongIterable |
asLazy() |
com.gs.collections.api.list.primitive.MutableLongList |
asSynchronized() |
com.gs.collections.api.list.primitive.MutableLongList |
asUnmodifiable() |
<V> com.gs.collections.api.list.MutableList<V> |
collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
long |
dotProduct(com.gs.collections.api.list.primitive.LongList list) |
boolean |
equals(java.lang.Object otherList)
Follows the same general contract as
List.equals(Object). |
long |
get(int index) |
long |
getFirst() |
long |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
indexOf(long value) |
int |
lastIndexOf(long value) |
com.gs.collections.api.list.primitive.MutableLongList |
reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
removeAtIndex(int index) |
com.gs.collections.api.list.primitive.MutableLongList |
reverseThis() |
com.gs.collections.api.list.primitive.MutableLongList |
select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
set(int index,
long element) |
com.gs.collections.api.list.primitive.MutableLongList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
com.gs.collections.api.list.primitive.ImmutableLongList |
toImmutable()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableLongList |
toReversed() |
SynchronizedLongList |
with(long element) |
SynchronizedLongList |
withAll(com.gs.collections.api.LongIterable elements) |
SynchronizedLongList |
without(long element) |
SynchronizedLongList |
withoutAll(com.gs.collections.api.LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getLock, getLongCollection, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, forEach, longIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic long get(int index)
get in interface com.gs.collections.api.list.primitive.LongListpublic long getFirst()
getFirst in interface com.gs.collections.api.list.primitive.LongListpublic long getLast()
getLast in interface com.gs.collections.api.list.primitive.LongListpublic int indexOf(long value)
indexOf in interface com.gs.collections.api.list.primitive.LongListpublic int lastIndexOf(long value)
lastIndexOf in interface com.gs.collections.api.list.primitive.LongListpublic void addAtIndex(int index,
long element)
addAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
long... source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
com.gs.collections.api.LongIterable source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic long removeAtIndex(int index)
removeAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic long set(int index,
long element)
set in interface com.gs.collections.api.list.primitive.MutableLongListpublic SynchronizedLongList with(long element)
with in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwith in interface com.gs.collections.api.list.primitive.MutableLongListwith in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList without(long element)
without in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithout in interface com.gs.collections.api.list.primitive.MutableLongListwithout in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList withAll(com.gs.collections.api.LongIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithAll in interface com.gs.collections.api.list.primitive.MutableLongListwithAll in class AbstractSynchronizedLongCollectionpublic SynchronizedLongList withoutAll(com.gs.collections.api.LongIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithoutAll in interface com.gs.collections.api.list.primitive.MutableLongListwithoutAll in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableLongCollectionselect in interface com.gs.collections.api.list.primitive.LongListselect in interface com.gs.collections.api.list.primitive.MutableLongListselect in interface com.gs.collections.api.LongIterableselect in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableLongCollectionreject in interface com.gs.collections.api.list.primitive.LongListreject in interface com.gs.collections.api.list.primitive.MutableLongListreject in interface com.gs.collections.api.LongIterablereject in class AbstractSynchronizedLongCollectionpublic <V> com.gs.collections.api.list.MutableList<V> collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableLongCollectioncollect in interface com.gs.collections.api.list.primitive.LongListcollect in interface com.gs.collections.api.list.primitive.MutableLongListcollect in interface com.gs.collections.api.LongIterablecollect in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList sortThis()
com.gs.collections.api.list.primitive.MutableLongListsortThis in interface com.gs.collections.api.list.primitive.MutableLongListpublic long dotProduct(com.gs.collections.api.list.primitive.LongList list)
dotProduct in interface com.gs.collections.api.list.primitive.LongListpublic boolean equals(java.lang.Object otherList)
com.gs.collections.api.list.primitive.LongListList.equals(Object).equals in interface com.gs.collections.api.list.primitive.LongListequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.list.primitive.LongListList.hashCode().hashCode in interface com.gs.collections.api.list.primitive.LongListhashCode in class java.lang.Objectpublic com.gs.collections.api.LazyLongIterable asLazy()
asLazy in interface com.gs.collections.api.LongIterableasLazy in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in interface com.gs.collections.api.list.primitive.MutableLongListasUnmodifiable in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasSynchronized in interface com.gs.collections.api.list.primitive.MutableLongListasSynchronized in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.list.primitive.ImmutableLongList toImmutable()
com.gs.collections.api.list.primitive.MutableLongListtoImmutable in interface com.gs.collections.api.collection.primitive.MutableLongCollectiontoImmutable in interface com.gs.collections.api.list.primitive.LongListtoImmutable in interface com.gs.collections.api.list.primitive.MutableLongListtoImmutable in class AbstractSynchronizedLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList reverseThis()
reverseThis in interface com.gs.collections.api.list.primitive.MutableLongListpublic com.gs.collections.api.list.primitive.MutableLongList toReversed()
toReversed in interface com.gs.collections.api.list.primitive.MutableLongList