A reflection-based utility that enables atomic updates to
volatile int fields of designated classes.
This class is designed for use in atomic data structures in which
several fields of the same node are independently subject to atomic
Note that the guarantees of the
method in this class are weaker than in other atomic classes.
Because this class cannot ensure that all uses of the field
are appropriate for purposes of atomic access, it can
guarantee atomicity only with respect to other invocations of
set on the same updater.
Object arguments for parameters of type
T that are not
instances of the class passed to
newUpdater will result in
ClassCastException being thrown.
|The type of the object holding the updatable field|