Java Utililty Methods AtomicBoolean

List of utility methods to do AtomicBoolean

  1. HOME
  2. Java
  3. A
  4. AtomicBoolean

Description

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

Method

boolean getBoolean(Object value)
Returns the boolean value of the given Object .
return getBoolean(value, false, false);
String getUnifiedCity(@Nullable final String sCity, @Nonnull final Locale aSortLocale)
get Unified City
if (!isComplexAddressHandlingEnabled())
 return sCity;
if (sCity == null)
 return null;
return _unifyPart(sCity, aSortLocale);
boolean isActivated()
is Activated
return isActivated.get();
boolean isBoolean(Class returnType)
is Boolean
return (returnType == Boolean.class || returnType == boolean.class || returnType == AtomicBoolean.class);
boolean isCaseSensitive()
is Case Sensitive
lazyInit();
return caseSensitive;
boolean isComplexAddressHandlingEnabled()
is Complex Address Handling Enabled
return s_aComplexAddressHandlingEnabled.get();
boolean isWriteRelativeUris()
Whether to write URI enums using relative URIs.
return WRITE_RELATIVE_URIS.get();
void remove()
remove
currentFlagHolder.remove();
Object resolveArgReferences(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) {
...
void sleepCheck(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");


AltStyle によって変換されたページ (->オリジナル) /