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()
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SynchronizedLongList | back to summary |
|---|---|
| public SynchronizedLongList(MutableLongList list) | |
| SynchronizedLongList | back to summary |
|---|---|
| public SynchronizedLongList(MutableLongList list, Object newLock) | |
| addAllAtIndex | back to summary |
|---|---|
| public boolean addAllAtIndex(int index, long... source) Implements org.
| |
| addAllAtIndex | back to summary |
|---|---|
| public boolean addAllAtIndex(int index, LongIterable source) Implements org.
| |
| addAtIndex | back to summary |
|---|---|
| public void addAtIndex(int index, long element) Implements org.
| |
| asLazy | back to summary |
|---|---|
| public LazyLongIterable asLazy() Overrides org. Implements org. Doc from org. Returns a LazyLongIterable adapter wrapping the source LongIterable.
| |
| asReversed | back to summary |
|---|---|
| public LazyLongIterable asReversed() Implements org.
| |
| asSynchronized | back to summary |
|---|---|
| public MutableLongList asSynchronized() Implements org.
| |
| asUnmodifiable | back to summary |
|---|---|
| public MutableLongList asUnmodifiable() Implements org.
| |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(long value) Implements org.
| |
| boxed | back to summary |
|---|---|
| public MutableList Implements org.
| |
| collect | back to summary |
|---|---|
| public <V> MutableList Overrides org. Implements org. Doc from org. Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.
| |
| collectWithIndex | back to summary |
|---|---|
| public <V> MutableList Overrides default org. Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.
| |
| collectWithIndex | back to summary |
|---|---|
| public <V, R extends Collection Overrides default org. Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.
| |
| distinct | back to summary |
|---|---|
| public MutableLongList distinct() Implements org.
| |
| dotProduct | back to summary |
|---|---|
| public long dotProduct(LongList list) Implements org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object otherList) Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| forEachInBoth | back to summary |
|---|---|
| public void forEachInBoth(LongList other, LongLongProcedure procedure) Overrides default org. Doc from org. This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.
| |
| forEachWithIndex | back to summary |
|---|---|
| public void forEachWithIndex(LongIntProcedure procedure) Implements org.
| |
| get | back to summary |
|---|---|
| public long get(int index) Implements org.
| |
| getFirst | back to summary |
|---|---|
| public long getFirst() Implements org.
| |
| getLast | back to summary |
|---|---|
| public long getLast() Implements org.
| |
| getMutableLongList | back to summary |
|---|---|
| private MutableLongList getMutableLongList() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements org. Doc from org. Follows the same general contract as
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(long value) Implements org.
| |
| injectIntoWithIndex | back to summary |
|---|---|
| public <T> T injectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T, ? extends T> function) Implements org.
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(long value) Implements org.
| |
| newEmpty | back to summary |
|---|---|
| public MutableLongList newEmpty() Overrides default org. Doc from org. Creates a new empty mutable version of the same List type.
| |
| reject | back to summary |
|---|---|
| public MutableLongList reject(LongPredicate predicate) Overrides org. Implements org. Doc from org. Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.
| |
| rejectWithIndex | back to summary |
|---|---|
| public MutableLongList rejectWithIndex(LongIntPredicate predicate) Overrides default org. Returns a new MutableLongList excluding all elements with corresponding indexes matching the specified predicate.
| |
| rejectWithIndex | back to summary |
|---|---|
| public <R extends MutableLongCollection> R rejectWithIndex(LongIntPredicate predicate, R target) Overrides default org. Returns a new MutableLongCollection excluding all elements with corresponding indexes matching the specified predicate.
| |
| removeAtIndex | back to summary |
|---|---|
| public long removeAtIndex(int index) Implements org.
| |
| reverseThis | back to summary |
|---|---|
| public MutableLongList reverseThis() Implements org.
| |
| select | back to summary |
|---|---|
| public MutableLongList select(LongPredicate predicate) Overrides org. Implements org. Doc from org. Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.
| |
| selectWithIndex | back to summary |
|---|---|
| public MutableLongList selectWithIndex(LongIntPredicate predicate) Overrides default org. Returns a new MutableLongList including all elements with corresponding indexes matching the specified predicate.
| |
| selectWithIndex | back to summary |
|---|---|
| public <R extends MutableLongCollection> R selectWithIndex(LongIntPredicate predicate, R target) Overrides default org. Returns a new MutableLongCollection including all elements with corresponding indexes matching the specified predicate.
| |
| set | back to summary |
|---|---|
| public long set(int index, long element) Implements org.
| |
| shuffleThis | back to summary |
|---|---|
| public MutableLongList shuffleThis() Overrides default org. Doc from org. Randomly permutes this list mutating its contents and returns the same list (this).
Uses
| |
| shuffleThis | back to summary |
|---|---|
| public MutableLongList shuffleThis(Random rnd) Overrides default org. Doc from org. Randomly permutes this list mutating its contents and returns the same list (this). Implements the Fisher-Yates shuffle algorithm using the provided source of randomness.
| |
| sortThis | back to summary |
|---|---|
| public MutableLongList sortThis() Implements org. Doc from org. Sorts this list mutating its contents and returns the same mutable list (this).
| |
| sortThis | back to summary |
|---|---|
| public MutableLongList sortThis(LongComparator comparator) Overrides default org. Doc from org. Sorts the internal data structure of this list and returns the list itself as a convenience.
| |
| sortThisBy | back to summary |
|---|---|
| public <T> MutableLongList sortThisBy(LongToObjectFunction<T> function) Overrides default org. Doc from org. Sorts the internal data structure of this list based on the natural order of the key returned by
| |
| sortThisBy | back to summary |
|---|---|
| public <T> MutableLongList sortThisBy(LongToObjectFunction<T> function, Comparator<? super T> comparator) Overrides default org. Doc from org. Sorts the internal data structure of this list based on the key returned by
| |
| spliterator | back to summary |
|---|---|
| public Spliterator. Implements org. This function needs to be synchronized manually
| |
| subList | back to summary |
|---|---|
| public MutableLongList subList(int fromIndex, int toIndex) Implements org.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableLongList toImmutable() Implements org. Doc from org. Returns an immutable copy of this list.
| |
| toReversed | back to summary |
|---|---|
| public MutableLongList toReversed() Implements org.
| |
| toStack | back to summary |
|---|---|
| public MutableLongStack toStack() Overrides default org. Doc from org. Converts the collection to a LongStack.
| |
| with | back to summary |
|---|---|
| public SynchronizedLongList with(long element) Overrides org. Implements org.
| |
| without | back to summary |
|---|---|
| public SynchronizedLongList without(long element) Overrides org. Implements org.
| |
| withoutAll | back to summary |
|---|---|
| public SynchronizedLongList withoutAll(LongIterable elements) Implements org.
| |
| zip | back to summary |
|---|---|
| public <T> MutableList Overrides default org. Doc from org. Returns a
| |
| zipLong | back to summary |
|---|---|
| public MutableList Overrides default org. Doc from org. Returns a
| |