Java Utililty Methods AtomicBoolean

List of utility methods to do AtomicBoolean

Description

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

Method

booleangetBoolean(Object value)
Returns the boolean value of the given Object .
return getBoolean(value, false, false);
StringgetUnifiedCity(@Nullable final String sCity, @Nonnull final Locale aSortLocale)
get Unified City
if (!isComplexAddressHandlingEnabled())
    return sCity;
if (sCity == null)
    return null;
return _unifyPart(sCity, aSortLocale);
booleanisActivated()
is Activated
return isActivated.get();
booleanisBoolean(Class returnType)
is Boolean
return (returnType == Boolean.class || returnType == boolean.class || returnType == AtomicBoolean.class);
booleanisCaseSensitive()
is Case Sensitive
lazyInit();
return caseSensitive;
booleanisComplexAddressHandlingEnabled()
is Complex Address Handling Enabled
return s_aComplexAddressHandlingEnabled.get();
booleanisWriteRelativeUris()
Whether to write URI enums using relative URIs.
return WRITE_RELATIVE_URIS.get();
voidremove()
remove
currentFlagHolder.remove();
ObjectresolveArgReferences(Object arg)
resolve Arg References
boolean resolved = false;
while (!resolved) {
    if (arg instanceof AtomicReference) {
        arg = ((AtomicReference<?>) arg).get();
    } else if (arg instanceof AtomicBoolean) { 
        arg = ((AtomicBoolean) arg).get() ? 1 : 0;
        resolved = true;
    } else if (arg instanceof ThreadLocal) {
...
voidsleepCheck(int timeout, AtomicBoolean flag)
sleep Check
int timer = 0;
while (timer < timeout) {
    Thread.sleep(1000);
    timer++;
    if (flag.get())
        throw new InterruptedException("Interrupt Request Received");