Java Utililty Methods AtomicReference

List of utility methods to do AtomicReference

Description

The list of methods to do AtomicReference are organized into topic(s).

Method

voidaddParameter(final String key, final String value, final StringBuilder url, final AtomicReference thisSeparator, final String nextSeparator)
add Parameter
if (value != null) {
    url.append(thisSeparator.get());
    url.append(key);
    url.append("=");
    url.append(value);
    thisSeparator.set(nextSeparator);
booleanaddThrowable(AtomicReferenceFieldUpdater field, T instance, Throwable exception)
add Throwable
for (;;) {
    Throwable current = field.get(instance);
    if (current == TERMINATED) {
        return false;
    Throwable update;
    if (current == null) {
        update = exception;
...
ListasList(AtomicReferenceArray a)
as List
List<T> list = new ArrayList<T>(a.length());
for (int i = 0; i < a.length(); i++) {
    list.add(a.get(i));
return list;
booleancancel(Future future, boolean mayInterruptIfRunning)
Cancels the given Future .
if (future != null) {
    return future.cancel(mayInterruptIfRunning);
return false;
booleancancelAll(Future[] futures, boolean mayInterruptIfRunning)
Cancels the given array of Future s.
boolean success = true;
if (futures != null) {
    for (Future<?> future : futures) {
        success &= cancel(future, mayInterruptIfRunning);
return success;
voidexpandSplineRoots(int n)
expand Spline Roots
float[][][] oldRoot = coeffRoot.get();
if (oldRoot != null && oldRoot.length > n) {
    return;
float[][][] newRoot = new float[n + 1][][];
newRoot[0] = new float[][] { { 1.0F } };
for (int o = 1; o < n + 1; o++) {
    newRoot[o] = new float[o + 1][o + 1];
...
StringgetDefaultBaseUri()
Get the default base uri for resolving qname URIs.
return DEFAULT_BASE_URI.get();
voidgetIdentityName(final String identityType, final String displayName, final String attribute, final String attribute2, final int uniqueUserID, final AtomicReference outResolvableName, final AtomicReference outDisplayableName)
get Identity Name
float[]getSplineCoefficients(int n, float x)
Gets the spline coefficients for a given order and offset
float[][][] root = coeffRoot.get();
if (root == null || root.length <= n) {
    expandSplineRoots(n);
    root = coeffRoot.get();
float[][] orderCoeff = root[n];
float[] coeffs = new float[n + 1];
for (int i = 0; i <= n; i++) {
...
booleanisTerminated(AtomicReference field)
Checks if the given field holds the terminated Throwable instance.
return isTerminated(field.get());