@ThreadSafe public final class SynchronizedLongList extends AbstractSynchronizedLongCollection implements 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 Formadd, 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, toString
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public long getFirst()
getFirst
in interface OrderedLongIterable
public long getLast()
getLast
in interface ReversibleLongIterable
public int indexOf(long value)
indexOf
in interface OrderedLongIterable
public int lastIndexOf(long value)
lastIndexOf
in interface LongList
public void addAtIndex(int index, long element)
addAtIndex
in interface MutableLongList
public boolean addAllAtIndex(int index, long... source)
addAllAtIndex
in interface MutableLongList
public boolean addAllAtIndex(int index, LongIterable source)
addAllAtIndex
in interface MutableLongList
public long removeAtIndex(int index)
removeAtIndex
in interface MutableLongList
public long set(int index, long element)
set
in interface MutableLongList
public SynchronizedLongList with(long element)
with
in interface MutableLongCollection
with
in interface MutableLongList
with
in class AbstractSynchronizedLongCollection
public SynchronizedLongList without(long element)
without
in interface MutableLongCollection
without
in interface MutableLongList
without
in class AbstractSynchronizedLongCollection
public SynchronizedLongList withAll(LongIterable elements)
withAll
in interface MutableLongCollection
withAll
in interface MutableLongList
withAll
in class AbstractSynchronizedLongCollection
public SynchronizedLongList withoutAll(LongIterable elements)
withoutAll
in interface MutableLongCollection
withoutAll
in interface MutableLongList
withoutAll
in class AbstractSynchronizedLongCollection
public MutableLongList select(LongPredicate predicate)
select
in interface MutableLongCollection
select
in interface LongList
select
in interface MutableLongList
select
in interface LongIterable
select
in interface OrderedLongIterable
select
in interface ReversibleLongIterable
select
in class AbstractSynchronizedLongCollection
public MutableLongList reject(LongPredicate predicate)
reject
in interface MutableLongCollection
reject
in interface LongList
reject
in interface MutableLongList
reject
in interface LongIterable
reject
in interface OrderedLongIterable
reject
in interface ReversibleLongIterable
reject
in class AbstractSynchronizedLongCollection
public <V> MutableList<V> collect(LongToObjectFunction<? extends V> function)
collect
in interface MutableLongCollection
collect
in interface LongList
collect
in interface MutableLongList
collect
in interface LongIterable
collect
in interface OrderedLongIterable
collect
in interface ReversibleLongIterable
collect
in class AbstractSynchronizedLongCollection
public MutableLongList sortThis()
MutableLongList
sortThis
in interface MutableLongList
public int binarySearch(long value)
binarySearch
in interface LongList
public long dotProduct(LongList list)
dotProduct
in interface LongList
public boolean equals(Object otherList)
LongList
List.equals(Object)
.public int hashCode()
LongList
List.hashCode()
.public LazyLongIterable asLazy()
asLazy
in interface LongIterable
asLazy
in class AbstractSynchronizedLongCollection
public MutableLongList asUnmodifiable()
asUnmodifiable
in interface MutableLongCollection
asUnmodifiable
in interface MutableLongList
asUnmodifiable
in class AbstractSynchronizedLongCollection
public MutableLongList asSynchronized()
asSynchronized
in interface MutableLongCollection
asSynchronized
in interface MutableLongList
asSynchronized
in class AbstractSynchronizedLongCollection
public ImmutableLongList toImmutable()
MutableLongList
toImmutable
in interface MutableLongCollection
toImmutable
in interface LongList
toImmutable
in interface MutableLongList
toImmutable
in class AbstractSynchronizedLongCollection
public MutableLongList reverseThis()
reverseThis
in interface MutableLongList
public MutableLongList toReversed()
toReversed
in interface LongList
toReversed
in interface MutableLongList
toReversed
in interface ReversibleLongIterable
public LazyLongIterable asReversed()
asReversed
in interface ReversibleLongIterable
public void forEachWithIndex(LongIntProcedure procedure)
forEachWithIndex
in interface OrderedLongIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedLongIterable
injectIntoWithIndex
in interface ReversibleLongIterable
public MutableLongList distinct()
distinct
in interface LongList
distinct
in interface MutableLongList
distinct
in interface ReversibleLongIterable
public MutableLongList subList(int fromIndex, int toIndex)
subList
in interface LongList
subList
in interface MutableLongList
List#subList(int fromIndex, int toIndex)}
Copyright © 2004–2016. All rights reserved.