List of utility methods to do AtomicReference
void | addParameter(final String key, final String value, final StringBuilder url, final AtomicReference add Parameter if (value != null) { url.append(thisSeparator.get()); url.append(key); url.append("="); url.append(value); thisSeparator.set(nextSeparator); |
boolean | addThrowable(AtomicReferenceFieldUpdater add Throwable for (;;) { Throwable current = field.get(instance); if (current == TERMINATED) { return false; Throwable update; if (current == null) { update = exception; ... |
List | asList(AtomicReferenceArray 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; |
boolean | cancel(Future> future, boolean mayInterruptIfRunning) Cancels the given Future . if (future != null) { return future.cancel(mayInterruptIfRunning); return false; |
boolean | cancelAll(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; |
void | expandSplineRoots(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]; ... |
String | getDefaultBaseUri() Get the default base uri for resolving qname URIs. return DEFAULT_BASE_URI.get();
|
void | getIdentityName(final String identityType, final String displayName, final String attribute, final String attribute2, final int uniqueUserID, final AtomicReference 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++) { ... |
boolean | isTerminated(AtomicReference Checks if the given field holds the terminated Throwable instance. return isTerminated(field.get());
|