- adapt(Runnable) - Static method in class jsr166e.ForkJoinTask
-
Returns a new
ForkJoinTask that performs the
run
method of the given
Runnable as its action, and returns
a null result upon
ForkJoinTask.join().
- adapt(Runnable, T) - Static method in class jsr166e.ForkJoinTask
-
Returns a new
ForkJoinTask that performs the
run
method of the given
Runnable as its action, and returns
the given result upon
ForkJoinTask.join().
- adapt(Callable<? extends T>) - Static method in class jsr166e.ForkJoinTask
-
Returns a new
ForkJoinTask that performs the
call
method of the given
Callable as its action, and returns
its result upon
ForkJoinTask.join(), translating any checked exceptions
encountered into
RuntimeException.
- add(K) - Method in class jsr166e.ConcurrentHashMapV8.KeySetView
-
Adds the specified key to this set view by mapping the key to
the default mapped value in the backing map, if defined.
- add(double) - Method in class jsr166e.DoubleAdder
-
Adds the given value.
- add(E) - Method in class jsr166e.extra.ReadMostlyVector
-
- add(int, E) - Method in class jsr166e.extra.ReadMostlyVector
-
- add(long) - Method in class jsr166e.LongAdder
-
Adds the given value.
- add(K, long) - Method in class jsr166e.LongAdderTable
-
Adds the given value to the sum associated with the given
key.
- addAll(Collection<? extends K>) - Method in class jsr166e.ConcurrentHashMapV8.KeySetView
-
- addAll(Collection<? extends E>) - Method in class jsr166e.extra.ReadMostlyVector
-
- addAll(int, Collection<? extends E>) - Method in class jsr166e.extra.ReadMostlyVector
-
- addAllAbsent(Collection<? extends E>) - Method in class jsr166e.extra.ReadMostlyVector
-
Appends all of the elements in the specified collection that
are not already contained in this list, to the end of
this list, in the order that they are returned by the
specified collection's iterator.
- addAndGet(double) - Method in class jsr166e.extra.AtomicDouble
-
Atomically adds the given value to the current value.
- addAndGet(int, double) - Method in class jsr166e.extra.AtomicDoubleArray
-
Atomically adds the given value to the element at index i.
- addElement(E) - Method in class jsr166e.extra.ReadMostlyVector
-
- addIfAbsent(E) - Method in class jsr166e.extra.ReadMostlyVector
-
Appends the element, if not present.
- addToPendingCount(int) - Method in class jsr166e.CountedCompleter
-
Adds (atomically) the given value to the pending count.
- apply(A) - Method in interface jsr166e.ConcurrentHashMapV8.Action
-
- apply(A, B) - Method in interface jsr166e.ConcurrentHashMapV8.BiAction
-
- apply(A, B) - Method in interface jsr166e.ConcurrentHashMapV8.BiFun
-
- apply(double, double) - Method in interface jsr166e.ConcurrentHashMapV8.DoubleByDoubleToDouble
-
- apply(A) - Method in interface jsr166e.ConcurrentHashMapV8.Fun
-
- apply(int, int) - Method in interface jsr166e.ConcurrentHashMapV8.IntByIntToInt
-
- apply(long, long) - Method in interface jsr166e.ConcurrentHashMapV8.LongByLongToLong
-
- apply(A, B) - Method in interface jsr166e.ConcurrentHashMapV8.ObjectByObjectToDouble
-
- apply(A, B) - Method in interface jsr166e.ConcurrentHashMapV8.ObjectByObjectToInt
-
- apply(A, B) - Method in interface jsr166e.ConcurrentHashMapV8.ObjectByObjectToLong
-
- apply(A) - Method in interface jsr166e.ConcurrentHashMapV8.ObjectToDouble
-
- apply(A) - Method in interface jsr166e.ConcurrentHashMapV8.ObjectToInt
-
- apply(A) - Method in interface jsr166e.ConcurrentHashMapV8.ObjectToLong
-
- apply(A) - Method in interface jsr166e.extra.ReadMostlyVector.Action
-
- asReadLock() - Method in class jsr166e.StampedLock
-
- asReadWriteLock() - Method in class jsr166e.StampedLock
-
- asWriteLock() - Method in class jsr166e.StampedLock
-
- AtomicDouble - Class in jsr166e.extra
-
A double value that may be updated atomically.
- AtomicDouble(double) - Constructor for class jsr166e.extra.AtomicDouble
-
Creates a new AtomicDouble with the given initial value.
- AtomicDouble() - Constructor for class jsr166e.extra.AtomicDouble
-
Creates a new AtomicDouble with initial value 0.0.
- AtomicDoubleArray - Class in jsr166e.extra
-
A double array in which elements may be updated atomically.
- AtomicDoubleArray(int) - Constructor for class jsr166e.extra.AtomicDoubleArray
-
Creates a new AtomicDoubleArray of the given length,
with all elements initially zero.
- AtomicDoubleArray(double[]) - Constructor for class jsr166e.extra.AtomicDoubleArray
-
Creates a new AtomicDoubleArray with the same length
as, and all elements copied from, the given array.
- awaitAvailability() - Method in class jsr166e.extra.SequenceLock
-
Returns the current sequence number when the lock is, or
becomes, available.
- awaitQuiescence(long, TimeUnit) - Method in class jsr166e.ForkJoinPool
-
- awaitTermination(long, TimeUnit) - Method in class jsr166e.ForkJoinPool
-
Blocks until all tasks have completed execution after a
shutdown request, or the timeout occurs, or the current thread
is interrupted, whichever happens first.
- cancel(boolean) - Method in class jsr166e.ForkJoinTask
-
Attempts to cancel execution of this task.
- capacity() - Method in class jsr166e.extra.ReadMostlyVector
-
- clear() - Method in class jsr166e.ConcurrentHashMapV8
-
Removes all of the mappings from this map.
- clear() - Method in class jsr166e.extra.ReadMostlyVector
-
- clone() - Method in class jsr166e.extra.ReadMostlyVector
-
- commonPool() - Static method in class jsr166e.ForkJoinPool
-
Returns the common pool instance.
- compareAndSet(double, double) - Method in class jsr166e.extra.AtomicDouble
-
Atomically sets the value to the given updated value
if the current value is
bitwise equal
to the expected value.
- compareAndSet(int, double, double) - Method in class jsr166e.extra.AtomicDoubleArray
-
Atomically sets the element at position
i to the given
updated value
if the current value is
bitwise equal
to the expected value.
- compareAndSetForkJoinTaskTag(short, short) - Method in class jsr166e.ForkJoinTask
-
Atomically conditionally sets the tag value for this task.
- compareAndSetPendingCount(int, int) - Method in class jsr166e.CountedCompleter
-
Sets (atomically) the pending count to the given count only if
it currently holds the given expected value.
- complete(T) - Method in class jsr166e.CountedCompleter
-
- complete(V) - Method in class jsr166e.ForkJoinTask
-
Completes this task, and if not already aborted or cancelled,
returning the given value as the result of subsequent
invocations of join and related operations.
- completeExceptionally(Throwable) - Method in class jsr166e.ForkJoinTask
-
Completes this task abnormally, and if not already aborted or
cancelled, causes it to throw the given exception upon
join and related operations.
- compute(K, ConcurrentHashMapV8.BiFun<? super K, ? super V, ? extends V>) - Method in class jsr166e.ConcurrentHashMapV8
-
Attempts to compute a mapping for the specified key and its
current mapped value (or null if there is no current
mapping).
- compute() - Method in class jsr166e.CountedCompleter
-
The main computation performed by this task.
- compute() - Method in class jsr166e.RecursiveAction
-
The main computation performed by this task.
- compute() - Method in class jsr166e.RecursiveTask
-
The main computation performed by this task.
- computeIfAbsent(K, ConcurrentHashMapV8.Fun<? super K, ? extends V>) - Method in class jsr166e.ConcurrentHashMapV8
-
If the specified key is not already associated with a value,
attempts to compute its value using the given mapping function
and enters it into this map unless null.
- computeIfPresent(K, ConcurrentHashMapV8.BiFun<? super K, ? super V, ? extends V>) - Method in class jsr166e.ConcurrentHashMapV8
-
If the value for the specified key is present, attempts to
compute a new mapping given the key and its current mapped
value.
- ConcurrentHashMapV8<K,V> - Class in jsr166e
-
A hash table supporting full concurrency of retrievals and
high expected concurrency for updates.
- ConcurrentHashMapV8() - Constructor for class jsr166e.ConcurrentHashMapV8
-
Creates a new, empty map with the default initial table size (16).
- ConcurrentHashMapV8(int) - Constructor for class jsr166e.ConcurrentHashMapV8
-
Creates a new, empty map with an initial table size
accommodating the specified number of elements without the need
to dynamically resize.
- ConcurrentHashMapV8(Map<? extends K, ? extends V>) - Constructor for class jsr166e.ConcurrentHashMapV8
-
Creates a new map with the same mappings as the given map.
- ConcurrentHashMapV8(int, float) - Constructor for class jsr166e.ConcurrentHashMapV8
-
Creates a new, empty map with an initial table size based on
the given number of elements (initialCapacity) and
initial table density (loadFactor).
- ConcurrentHashMapV8(int, float, int) - Constructor for class jsr166e.ConcurrentHashMapV8
-
Creates a new, empty map with an initial table size based on
the given number of elements (initialCapacity), table
density (loadFactor), and number of concurrently
updating threads (concurrencyLevel).
- ConcurrentHashMapV8.Action<A> - Interface in jsr166e
-
Interface describing a void action of one argument
- ConcurrentHashMapV8.BiAction<A,B> - Interface in jsr166e
-
Interface describing a void action of two arguments
- ConcurrentHashMapV8.BiFun<A,B,T> - Interface in jsr166e
-
Interface describing a function of two arguments
- ConcurrentHashMapV8.ConcurrentHashMapSpliterator<T> - Interface in jsr166e
-
An object for traversing and partitioning elements of a source.
- ConcurrentHashMapV8.DoubleByDoubleToDouble - Interface in jsr166e
-
Interface describing a function mapping two doubles to a double
- ConcurrentHashMapV8.Fun<A,T> - Interface in jsr166e
-
Interface describing a function of one argument
- ConcurrentHashMapV8.IntByIntToInt - Interface in jsr166e
-
Interface describing a function mapping two ints to an int
- ConcurrentHashMapV8.KeySetView<K,V> - Class in jsr166e
-
A view of a ConcurrentHashMapV8 as a
Set of keys, in
which additions may optionally be enabled by mapping to a
common value.
- ConcurrentHashMapV8.LongByLongToLong - Interface in jsr166e
-
Interface describing a function mapping two longs to a long
- ConcurrentHashMapV8.ObjectByObjectToDouble<A,B> - Interface in jsr166e
-
Interface describing a function mapping two arguments to a double
- ConcurrentHashMapV8.ObjectByObjectToInt<A,B> - Interface in jsr166e
-
Interface describing a function mapping two arguments to an int
- ConcurrentHashMapV8.ObjectByObjectToLong<A,B> - Interface in jsr166e
-
Interface describing a function mapping two arguments to a long
- ConcurrentHashMapV8.ObjectToDouble<A> - Interface in jsr166e
-
Interface describing a function mapping its argument to a double
- ConcurrentHashMapV8.ObjectToInt<A> - Interface in jsr166e
-
Interface describing a function mapping its argument to an int
- ConcurrentHashMapV8.ObjectToLong<A> - Interface in jsr166e
-
Interface describing a function mapping its argument to a long
- contains(Object) - Method in class jsr166e.ConcurrentHashMapV8
-
Deprecated.
- contains(Object) - Method in class jsr166e.ConcurrentHashMapV8.KeySetView
- contains(Object) - Method in class jsr166e.extra.ReadMostlyVector
-
- containsAll(Collection<?>) - Method in class jsr166e.extra.ReadMostlyVector
-
- containsKey(Object) - Method in class jsr166e.ConcurrentHashMapV8
-
Tests if the specified object is a key in this table.
- containsValue(Object) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns true if this map maps one or more keys to the
specified value.
- copyInto(Object[]) - Method in class jsr166e.extra.ReadMostlyVector
-
- CountedCompleter<T> - Class in jsr166e
-
A
ForkJoinTask with a completion action performed when
triggered and there are no remaining pending actions.
- CountedCompleter(CountedCompleter<?>, int) - Constructor for class jsr166e.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and initial pending count.
- CountedCompleter(CountedCompleter<?>) - Constructor for class jsr166e.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and an initial pending count of zero.
- CountedCompleter() - Constructor for class jsr166e.CountedCompleter
-
Creates a new CountedCompleter with no completer
and an initial pending count of zero.
- current() - Static method in class jsr166e.ThreadLocalRandom
-
Returns the current thread's ThreadLocalRandom.
- get(Object) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the value to which the specified key is mapped,
or null if this map contains no mapping for the key.
- get() - Method in class jsr166e.extra.AtomicDouble
-
Gets the current value.
- get(int) - Method in class jsr166e.extra.AtomicDoubleArray
-
Gets the current value at position i.
- get(int) - Method in class jsr166e.extra.ReadMostlyVector
-
- get() - Method in class jsr166e.ForkJoinTask
-
Waits if necessary for the computation to complete, and then
retrieves its result.
- get(long, TimeUnit) - Method in class jsr166e.ForkJoinTask
-
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
- getActiveThreadCount() - Method in class jsr166e.ForkJoinPool
-
Returns an estimate of the number of threads that are currently
stealing or executing tasks.
- getAndAdd(double) - Method in class jsr166e.extra.AtomicDouble
-
Atomically adds the given value to the current value.
- getAndAdd(int, double) - Method in class jsr166e.extra.AtomicDoubleArray
-
Atomically adds the given value to the element at index i.
- getAndSet(double) - Method in class jsr166e.extra.AtomicDouble
-
Atomically sets to the given value and returns the old value.
- getAndSet(int, double) - Method in class jsr166e.extra.AtomicDoubleArray
-
Atomically sets the element at position i to the given value
and returns the old value.
- getAsyncMode() - Method in class jsr166e.ForkJoinPool
-
Returns true if this pool uses local first-in-first-out
scheduling mode for forked tasks that are never joined.
- getCommonPoolParallelism() - Static method in class jsr166e.ForkJoinPool
-
Returns the targeted parallelism level of the common pool.
- getCompleter() - Method in class jsr166e.CountedCompleter
-
Returns the completer established in this task's constructor,
or null if none.
- getException() - Method in class jsr166e.ForkJoinTask
-
Returns the exception thrown by the base computation, or a
CancellationException if cancelled, or null if
none or if the method has not yet completed.
- getFactory() - Method in class jsr166e.ForkJoinPool
-
Returns the factory used for constructing new workers.
- getForkJoinTaskTag() - Method in class jsr166e.ForkJoinTask
-
Returns the tag for this task.
- getHoldCount() - Method in class jsr166e.extra.SequenceLock
-
Queries the number of holds on this lock by the current thread.
- getMappedValue() - Method in class jsr166e.ConcurrentHashMapV8.KeySetView
-
Returns the default mapped value for additions,
or null if additions are not supported.
- getOrDefault(Object, V) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the value to which the specified key is mapped, or the
given default value if this map contains no mapping for the
key.
- getOwner() - Method in class jsr166e.extra.SequenceLock
-
Returns the thread that currently owns this lock, or
null if not owned.
- getParallelism() - Method in class jsr166e.ForkJoinPool
-
Returns the targeted parallelism level of this pool.
- getPendingCount() - Method in class jsr166e.CountedCompleter
-
Returns the current pending count.
- getPool() - Static method in class jsr166e.ForkJoinTask
-
Returns the pool hosting the current task execution, or null
if this task is executing outside of any ForkJoinPool.
- getPool() - Method in class jsr166e.ForkJoinWorkerThread
-
Returns the pool hosting this thread.
- getPoolIndex() - Method in class jsr166e.ForkJoinWorkerThread
-
Returns the unique index number of this thread in its pool.
- getPoolSize() - Method in class jsr166e.ForkJoinPool
-
Returns the number of worker threads that have started but not
yet terminated.
- getQueuedSubmissionCount() - Method in class jsr166e.ForkJoinPool
-
Returns an estimate of the number of tasks submitted to this
pool that have not yet begun executing.
- getQueuedTaskCount() - Method in class jsr166e.ForkJoinPool
-
Returns an estimate of the total number of tasks currently held
in queues by worker threads (but not including tasks submitted
to the pool that have not begun executing).
- getQueuedTaskCount() - Static method in class jsr166e.ForkJoinTask
-
Returns an estimate of the number of tasks that have been
forked by the current worker thread but not yet executed.
- getQueuedThreads() - Method in class jsr166e.extra.SequenceLock
-
Returns a collection containing threads that may be waiting to
acquire this lock.
- getQueueLength() - Method in class jsr166e.extra.SequenceLock
-
Returns an estimate of the number of threads waiting to
acquire this lock.
- getRawResult() - Method in class jsr166e.CountedCompleter
-
Returns the result of the computation.
- getRawResult() - Method in class jsr166e.ForkJoinTask
-
Returns the result that would be returned by
ForkJoinTask.join(), even
if this task completed abnormally, or
null if this task
is not known to have been completed.
- getRawResult() - Method in class jsr166e.RecursiveAction
-
Always returns null.
- getRawResult() - Method in class jsr166e.RecursiveTask
-
- getReadLockCount() - Method in class jsr166e.StampedLock
-
Queries the number of read locks held for this lock.
- getRoot() - Method in class jsr166e.CountedCompleter
-
Returns the root of the current computation; i.e., this
task if it has no completer, else its completer's root.
- getRunningThreadCount() - Method in class jsr166e.ForkJoinPool
-
Returns an estimate of the number of worker threads that are
not blocked waiting to join tasks or for other managed
synchronization.
- getSequence() - Method in class jsr166e.extra.SequenceLock
-
Returns the current sequence number of this lock.
- getStealCount() - Method in class jsr166e.ForkJoinPool
-
Returns an estimate of the total number of tasks stolen from
one thread's work queue by another.
- getSurplusQueuedTaskCount() - Static method in class jsr166e.ForkJoinTask
-
Returns an estimate of how many more locally queued tasks are
held by the current worker thread than there are other worker
threads that might steal them, or zero if this thread is not
operating in a ForkJoinPool.
- getUncaughtExceptionHandler() - Method in class jsr166e.ForkJoinPool
-
Returns the handler for internal worker threads that terminate
due to unrecoverable errors encountered while executing tasks.
- increment() - Method in class jsr166e.LongAdder
-
Equivalent to add(1).
- increment(K) - Method in class jsr166e.LongAdderTable
-
Increments the sum associated with the given key.
- indexOf(Object) - Method in class jsr166e.extra.ReadMostlyVector
-
- indexOf(Object, int) - Method in class jsr166e.extra.ReadMostlyVector
-
- inForkJoinPool() - Static method in class jsr166e.ForkJoinTask
-
Returns
true if the current thread is a
ForkJoinWorkerThread executing as a ForkJoinPool computation.
- insertElementAt(E, int) - Method in class jsr166e.extra.ReadMostlyVector
-
- install(K) - Method in class jsr166e.LongAdderTable
-
If the given key does not already exist in the table, inserts
the key with initial sum of zero; in either case returning the
adder associated with this key.
- intValue() - Method in class jsr166e.DoubleAdder
-
- intValue() - Method in class jsr166e.DoubleMaxUpdater
-
- intValue() - Method in class jsr166e.extra.AtomicDouble
-
Returns the value of this AtomicDouble as an int
after a narrowing primitive conversion.
- intValue() - Method in class jsr166e.LongAdder
-
Returns the
LongAdder.sum() as an
int after a narrowing
primitive conversion.
- intValue() - Method in class jsr166e.LongMaxUpdater
-
- invoke(ForkJoinTask<T>) - Method in class jsr166e.ForkJoinPool
-
Performs the given task, returning its result upon completion.
- invoke() - Method in class jsr166e.ForkJoinTask
-
Commences performing this task, awaits its completion if
necessary, and returns its result, or throws an (unchecked)
RuntimeException or Error if the underlying
computation did so.
- invokeAll(Collection<? extends Callable<T>>) - Method in class jsr166e.ForkJoinPool
-
- invokeAll(ForkJoinTask<?>, ForkJoinTask<?>) - Static method in class jsr166e.ForkJoinTask
-
Forks the given tasks, returning when isDone holds for
each task or an (unchecked) exception is encountered, in which
case the exception is rethrown.
- invokeAll(ForkJoinTask<?>...) - Static method in class jsr166e.ForkJoinTask
-
Forks the given tasks, returning when isDone holds for
each task or an (unchecked) exception is encountered, in which
case the exception is rethrown.
- invokeAll(Collection<T>) - Static method in class jsr166e.ForkJoinTask
-
Forks all tasks in the specified collection, returning when
isDone holds for each task or an (unchecked) exception
is encountered, in which case the exception is rethrown.
- isCancelled() - Method in class jsr166e.ForkJoinTask
-
- isCompletedAbnormally() - Method in class jsr166e.ForkJoinTask
-
Returns true if this task threw an exception or was cancelled.
- isCompletedNormally() - Method in class jsr166e.ForkJoinTask
-
Returns true if this task completed without throwing an
exception and was not cancelled.
- isDone() - Method in class jsr166e.ForkJoinTask
-
- isEmpty() - Method in class jsr166e.ConcurrentHashMapV8
- isEmpty() - Method in class jsr166e.extra.ReadMostlyVector
-
- isHeldByCurrentThread() - Method in class jsr166e.extra.SequenceLock
-
Queries if this lock is held by the current thread.
- isLocked() - Method in class jsr166e.extra.SequenceLock
-
Queries if this lock is held by any thread.
- isQuiescent() - Method in class jsr166e.ForkJoinPool
-
Returns true if all worker threads are currently idle.
- isReadLocked() - Method in class jsr166e.StampedLock
-
Returns true if the lock is currently held non-exclusively.
- isReleasable() - Method in interface jsr166e.ForkJoinPool.ManagedBlocker
-
Returns true if blocking is unnecessary.
- isShutdown() - Method in class jsr166e.ForkJoinPool
-
Returns true if this pool has been shut down.
- isTerminated() - Method in class jsr166e.ForkJoinPool
-
Returns true if all tasks have completed following shut down.
- isTerminating() - Method in class jsr166e.ForkJoinPool
-
Returns true if the process of termination has
commenced but not yet completed.
- isWriteLocked() - Method in class jsr166e.StampedLock
-
Returns true if the lock is currently held exclusively.
- iterator() - Method in class jsr166e.ConcurrentHashMapV8.KeySetView
-
- iterator() - Method in class jsr166e.extra.ReadMostlyVector
-
- peekNextLocalTask() - Static method in class jsr166e.ForkJoinTask
-
Returns, but does not unschedule or execute, a task queued by
the current thread but not yet executed, if one is immediately
available.
- pollNextLocalTask() - Static method in class jsr166e.ForkJoinTask
-
Unschedules and returns, without executing, the next task
queued by the current thread but not yet executed, if the
current thread is operating in a ForkJoinPool.
- pollSubmission() - Method in class jsr166e.ForkJoinPool
-
Removes and returns the next unexecuted submission if one is
available.
- pollTask() - Static method in class jsr166e.ForkJoinTask
-
If the current thread is operating in a ForkJoinPool,
unschedules and returns, without executing, the next task
queued by the current thread but not yet executed, if one is
available, or if not available, a task that was forked by some
other thread, if available.
- propagateCompletion() - Method in class jsr166e.CountedCompleter
-
- put(K, V) - Method in class jsr166e.ConcurrentHashMapV8
-
Maps the specified key to the specified value in this table.
- putAll(Map<? extends K, ? extends V>) - Method in class jsr166e.ConcurrentHashMapV8
-
Copies all of the mappings from the specified map to this one.
- putIfAbsent(K, V) - Method in class jsr166e.ConcurrentHashMapV8
- readLock() - Method in class jsr166e.StampedLock
-
Non-exclusively acquires the lock, blocking if necessary
until available.
- readLockInterruptibly() - Method in class jsr166e.StampedLock
-
Non-exclusively acquires the lock, blocking if necessary
until available or the current thread is interrupted.
- ReadMostlyVector<E> - Class in jsr166e.extra
-
A class with the same methods and array-based characteristics as
Vector but with reduced contention and improved
throughput when invocations of read-only methods by multiple
threads are most common.
- ReadMostlyVector(int, int) - Constructor for class jsr166e.extra.ReadMostlyVector
-
Creates an empty vector with the given initial capacity and
capacity increment.
- ReadMostlyVector(int) - Constructor for class jsr166e.extra.ReadMostlyVector
-
Creates an empty vector with the given initial capacity.
- ReadMostlyVector() - Constructor for class jsr166e.extra.ReadMostlyVector
-
Creates an empty vector.
- ReadMostlyVector(Collection<? extends E>) - Constructor for class jsr166e.extra.ReadMostlyVector
-
Creates a vector containing the elements of the specified
collection, in the order they are returned by the collection's
iterator.
- ReadMostlyVector.Action<A> - Interface in jsr166e.extra
-
Interface describing a void action of one argument
- RecursiveAction - Class in jsr166e
-
- RecursiveAction() - Constructor for class jsr166e.RecursiveAction
-
- RecursiveTask<V> - Class in jsr166e
-
- RecursiveTask() - Constructor for class jsr166e.RecursiveTask
-
- reduce(long, ConcurrentHashMapV8.BiFun<? super K, ? super V, ? extends U>, ConcurrentHashMapV8.BiFun<? super U, ? super U, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all (key, value) pairs using the given reducer to
combine values, or null if none.
- reduceEntries(long, ConcurrentHashMapV8.BiFun<Map.Entry<K, V>, Map.Entry<K, V>, ? extends Map.Entry<K, V>>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating all entries using the
given reducer to combine values, or null if none.
- reduceEntries(long, ConcurrentHashMapV8.Fun<Map.Entry<K, V>, ? extends U>, ConcurrentHashMapV8.BiFun<? super U, ? super U, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all entries using the given reducer to combine values,
or null if none.
- reduceEntriesToDouble(long, ConcurrentHashMapV8.ObjectToDouble<Map.Entry<K, V>>, double, ConcurrentHashMapV8.DoubleByDoubleToDouble) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all entries using the given reducer to combine values,
and the given basis as an identity value.
- reduceEntriesToInt(long, ConcurrentHashMapV8.ObjectToInt<Map.Entry<K, V>>, int, ConcurrentHashMapV8.IntByIntToInt) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all entries using the given reducer to combine values,
and the given basis as an identity value.
- reduceEntriesToLong(long, ConcurrentHashMapV8.ObjectToLong<Map.Entry<K, V>>, long, ConcurrentHashMapV8.LongByLongToLong) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all entries using the given reducer to combine values,
and the given basis as an identity value.
- reduceKeys(long, ConcurrentHashMapV8.BiFun<? super K, ? super K, ? extends K>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating all keys using the given
reducer to combine values, or null if none.
- reduceKeys(long, ConcurrentHashMapV8.Fun<? super K, ? extends U>, ConcurrentHashMapV8.BiFun<? super U, ? super U, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all keys using the given reducer to combine values, or
null if none.
- reduceKeysToDouble(long, ConcurrentHashMapV8.ObjectToDouble<? super K>, double, ConcurrentHashMapV8.DoubleByDoubleToDouble) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all keys using the given reducer to combine values, and
the given basis as an identity value.
- reduceKeysToInt(long, ConcurrentHashMapV8.ObjectToInt<? super K>, int, ConcurrentHashMapV8.IntByIntToInt) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all keys using the given reducer to combine values, and
the given basis as an identity value.
- reduceKeysToLong(long, ConcurrentHashMapV8.ObjectToLong<? super K>, long, ConcurrentHashMapV8.LongByLongToLong) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all keys using the given reducer to combine values, and
the given basis as an identity value.
- reduceToDouble(long, ConcurrentHashMapV8.ObjectByObjectToDouble<? super K, ? super V>, double, ConcurrentHashMapV8.DoubleByDoubleToDouble) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all (key, value) pairs using the given reducer to
combine values, and the given basis as an identity value.
- reduceToInt(long, ConcurrentHashMapV8.ObjectByObjectToInt<? super K, ? super V>, int, ConcurrentHashMapV8.IntByIntToInt) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all (key, value) pairs using the given reducer to
combine values, and the given basis as an identity value.
- reduceToLong(long, ConcurrentHashMapV8.ObjectByObjectToLong<? super K, ? super V>, long, ConcurrentHashMapV8.LongByLongToLong) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all (key, value) pairs using the given reducer to
combine values, and the given basis as an identity value.
- reduceValues(long, ConcurrentHashMapV8.BiFun<? super V, ? super V, ? extends V>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating all values using the
given reducer to combine values, or null if none.
- reduceValues(long, ConcurrentHashMapV8.Fun<? super V, ? extends U>, ConcurrentHashMapV8.BiFun<? super U, ? super U, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all values using the given reducer to combine values, or
null if none.
- reduceValuesToDouble(long, ConcurrentHashMapV8.ObjectToDouble<? super V>, double, ConcurrentHashMapV8.DoubleByDoubleToDouble) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all values using the given reducer to combine values,
and the given basis as an identity value.
- reduceValuesToInt(long, ConcurrentHashMapV8.ObjectToInt<? super V>, int, ConcurrentHashMapV8.IntByIntToInt) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all values using the given reducer to combine values,
and the given basis as an identity value.
- reduceValuesToLong(long, ConcurrentHashMapV8.ObjectToLong<? super V>, long, ConcurrentHashMapV8.LongByLongToLong) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns the result of accumulating the given transformation
of all values using the given reducer to combine values,
and the given basis as an identity value.
- reinitialize() - Method in class jsr166e.ForkJoinTask
-
Resets the internal bookkeeping state of this task, allowing a
subsequent fork.
- remove(Object) - Method in class jsr166e.ConcurrentHashMapV8.KeySetView
-
Removes the key from this map view, by removing the key (and its
corresponding value) from the backing map.
- remove(Object) - Method in class jsr166e.ConcurrentHashMapV8
-
Removes the key (and its corresponding value) from this map.
- remove(Object, Object) - Method in class jsr166e.ConcurrentHashMapV8
- remove(int) - Method in class jsr166e.extra.ReadMostlyVector
-
- remove(Object) - Method in class jsr166e.extra.ReadMostlyVector
-
- remove(K) - Method in class jsr166e.LongAdderTable
-
Removes the given key from the table.
- removeAll(Collection<?>) - Method in class jsr166e.extra.ReadMostlyVector
-
- removeAll() - Method in class jsr166e.LongAdderTable
-
Removes all keys from the table.
- removeAllElements() - Method in class jsr166e.extra.ReadMostlyVector
-
- removeElement(Object) - Method in class jsr166e.extra.ReadMostlyVector
-
- removeElementAt(int) - Method in class jsr166e.extra.ReadMostlyVector
-
- replace(K, V, V) - Method in class jsr166e.ConcurrentHashMapV8
- replace(K, V) - Method in class jsr166e.ConcurrentHashMapV8
- replaceAll(ConcurrentHashMapV8.BiFun<? super K, ? super V, ? extends V>) - Method in class jsr166e.ConcurrentHashMapV8
-
- reset() - Method in class jsr166e.DoubleAdder
-
Resets variables maintaining the sum to zero.
- reset() - Method in class jsr166e.DoubleMaxUpdater
-
Resets variables maintaining updates to Double.NEGATIVE_INFINITY.
- reset() - Method in class jsr166e.LongAdder
-
Resets variables maintaining the sum to zero.
- reset(K) - Method in class jsr166e.LongAdderTable
-
Resets the sum associated with the given key to zero if the key
exists in the table.
- reset() - Method in class jsr166e.LongMaxUpdater
-
Resets variables maintaining updates to Long.MIN_VALUE.
- resetAll() - Method in class jsr166e.LongAdderTable
-
Resets the sum associated with each key to zero.
- retainAll(Collection<?>) - Method in class jsr166e.extra.ReadMostlyVector
-
- run() - Method in class jsr166e.ForkJoinWorkerThread
-
This method is required to be public, but should never be
called explicitly.
- search(long, ConcurrentHashMapV8.BiFun<? super K, ? super V, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns a non-null result from applying the given search
function on each (key, value), or null if none.
- searchEntries(long, ConcurrentHashMapV8.Fun<Map.Entry<K, V>, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns a non-null result from applying the given search
function on each entry, or null if none.
- searchKeys(long, ConcurrentHashMapV8.Fun<? super K, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns a non-null result from applying the given search
function on each key, or null if none.
- searchValues(long, ConcurrentHashMapV8.Fun<? super V, ? extends U>) - Method in class jsr166e.ConcurrentHashMapV8
-
Returns a non-null result from applying the given search
function on each value, or null if none.
- SequenceLock - Class in jsr166e.extra
-
A reentrant mutual exclusion
Lock in which each lock
acquisition or release advances a sequence number.
- SequenceLock() - Constructor for class jsr166e.extra.SequenceLock
-
Creates an instance of SequenceLock with the default
number of retry attempts to acquire the lock before blocking.
- SequenceLock(int) - Constructor for class jsr166e.extra.SequenceLock
-
Creates an instance of SequenceLock that will retry
attempts to acquire the lock at least the given number of times
before blocking.
- set(double) - Method in class jsr166e.extra.AtomicDouble
-
Sets to the given value.
- set(int, double) - Method in class jsr166e.extra.AtomicDoubleArray
-
Sets the element at position i to the given value.
- set(int, E) - Method in class jsr166e.extra.ReadMostlyVector
-
- setElementAt(E, int) - Method in class jsr166e.extra.ReadMostlyVector
-
- setForkJoinTaskTag(short) - Method in class jsr166e.ForkJoinTask
-
Atomically sets the tag value for this task.
- setPendingCount(int) - Method in class jsr166e.CountedCompleter
-
Sets the pending count to the given value.
- setRawResult(T) - Method in class jsr166e.CountedCompleter
-
A method that result-bearing CountedCompleters may optionally
use to help maintain result data.
- setRawResult(V) - Method in class jsr166e.ForkJoinTask
-
Forces the given value to be returned as a result.
- setRawResult(Void) - Method in class jsr166e.RecursiveAction
-
Requires null completion value.
- setRawResult(V) - Method in class jsr166e.RecursiveTask
-
- setSeed(long) - Method in class jsr166e.ThreadLocalRandom
-
Throws UnsupportedOperationException.
- setSize(int) - Method in class jsr166e.extra.ReadMostlyVector
-
- shutdown() - Method in class jsr166e.ForkJoinPool
-
Possibly initiates an orderly shutdown in which previously
submitted tasks are executed, but no new tasks will be
accepted.
- shutdownNow() - Method in class jsr166e.ForkJoinPool
-
Possibly attempts to cancel and/or stop all tasks, and reject
all subsequently submitted tasks.
- size() - Method in class jsr166e.ConcurrentHashMapV8
- size() - Method in class jsr166e.extra.ReadMostlyVector
-
- snapshotIterator() - Method in class jsr166e.extra.ReadMostlyVector
-
Returns an iterator operating over a snapshot copy of the
elements of this collection created upon construction of the
iterator.
- spliterator() - Method in class jsr166e.ConcurrentHashMapV8.KeySetView
-
- StampedLock - Class in jsr166e
-
A capability-based lock with three modes for controlling read/write
access.
- StampedLock() - Constructor for class jsr166e.StampedLock
-
Creates a new lock, initially in unlocked state.
- subList(int, int) - Method in class jsr166e.extra.ReadMostlyVector
-
- submit(ForkJoinTask<T>) - Method in class jsr166e.ForkJoinPool
-
Submits a ForkJoinTask for execution.
- submit(Callable<T>) - Method in class jsr166e.ForkJoinPool
-
- submit(Runnable, T) - Method in class jsr166e.ForkJoinPool
-
- submit(Runnable) - Method in class jsr166e.ForkJoinPool
-
- sum() - Method in class jsr166e.DoubleAdder
-
Returns the current sum.
- sum() - Method in class jsr166e.LongAdder
-
Returns the current sum.
- sum(K) - Method in class jsr166e.LongAdderTable
-
Returns the sum associated with the given key, or zero if the
key does not currently exist in the table.
- sumAll() - Method in class jsr166e.LongAdderTable
-
Returns the sum totalled across all keys.
- sumThenReset() - Method in class jsr166e.DoubleAdder
-
- sumThenReset() - Method in class jsr166e.LongAdder
-
- sumThenReset(K) - Method in class jsr166e.LongAdderTable
-
Resets the sum associated with the given key to zero if the key
exists in the table.
- sumThenResetAll() - Method in class jsr166e.LongAdderTable
-
Totals, then resets, the sums associated with all keys.
- ThreadLocalRandom - Class in jsr166e
-
A random number generator isolated to the current thread.
- toArray() - Method in class jsr166e.extra.ReadMostlyVector
-
- toArray(T[]) - Method in class jsr166e.extra.ReadMostlyVector
-
- toString() - Method in class jsr166e.ConcurrentHashMapV8
-
Returns a string representation of this map.
- toString() - Method in class jsr166e.DoubleAdder
-
- toString() - Method in class jsr166e.DoubleMaxUpdater
-
- toString() - Method in class jsr166e.extra.AtomicDouble
-
Returns the String representation of the current value.
- toString() - Method in class jsr166e.extra.AtomicDoubleArray
-
Returns the String representation of the current values of array.
- toString() - Method in class jsr166e.extra.ReadMostlyVector
-
- toString() - Method in class jsr166e.extra.SequenceLock
-
Returns a string identifying this lock, as well as its lock state.
- toString() - Method in class jsr166e.ForkJoinPool
-
Returns a string identifying this pool, as well as its state,
including indications of run state, parallelism level, and
worker and task counts.
- toString() - Method in class jsr166e.LongAdder
-
- toString() - Method in class jsr166e.LongMaxUpdater
-
- toString() - Method in class jsr166e.StampedLock
-
Returns a string identifying this lock, as well as its lock
state.
- trimToSize() - Method in class jsr166e.extra.ReadMostlyVector
-
- tryAdvance(ConcurrentHashMapV8.Action<? super T>) - Method in interface jsr166e.ConcurrentHashMapV8.ConcurrentHashMapSpliterator
-
If an element remains, applies the action and returns true.
- tryAwaitAvailability(long, TimeUnit) - Method in class jsr166e.extra.SequenceLock
-
Returns the current sequence number if the lock is, or
becomes, available within the specified waiting time.
- tryComplete() - Method in class jsr166e.CountedCompleter
-
- tryConvertToOptimisticRead(long) - Method in class jsr166e.StampedLock
-
If the lock state matches the given stamp then, if the stamp
represents holding a lock, releases it and returns an
observation stamp.
- tryConvertToReadLock(long) - Method in class jsr166e.StampedLock
-
If the lock state matches the given stamp, performs one of
the following actions.
- tryConvertToWriteLock(long) - Method in class jsr166e.StampedLock
-
If the lock state matches the given stamp, performs one of
the following actions.
- tryLock() - Method in class jsr166e.extra.SequenceLock
-
Acquires the lock only if it is not held by another thread at the time
of invocation.
- tryLock(long, TimeUnit) - Method in class jsr166e.extra.SequenceLock
-
Acquires the lock if it is not held by another thread within the given
waiting time and the current thread has not been
interrupted.
- tryOptimisticRead() - Method in class jsr166e.StampedLock
-
Returns a stamp that can later be validated, or zero
if exclusively locked.
- tryReadLock() - Method in class jsr166e.StampedLock
-
Non-exclusively acquires the lock if it is immediately available.
- tryReadLock(long, TimeUnit) - Method in class jsr166e.StampedLock
-
Non-exclusively acquires the lock if it is available within the
given time and the current thread has not been interrupted.
- trySplit() - Method in interface jsr166e.ConcurrentHashMapV8.ConcurrentHashMapSpliterator
-
If possible, returns a new spliterator covering
approximately one half of the elements, which will not be
covered by this spliterator.
- tryUnfork() - Method in class jsr166e.ForkJoinTask
-
Tries to unschedule this task for execution.
- tryUnlockRead() - Method in class jsr166e.StampedLock
-
Releases one hold of the read lock if it is held, without
requiring a stamp value.
- tryUnlockWrite() - Method in class jsr166e.StampedLock
-
Releases the write lock if it is held, without requiring a
stamp value.
- tryWriteLock() - Method in class jsr166e.StampedLock
-
Exclusively acquires the lock if it is immediately available.
- tryWriteLock(long, TimeUnit) - Method in class jsr166e.StampedLock
-
Exclusively acquires the lock if it is available within the
given time and the current thread has not been interrupted.