Code example for AtomicBoolean

Methods: get

0
  } 
 
  @Override 
  public boolean isEnabled() 
  { 
    return _enabled.get();
  } 
 
  @Override 
  public void reset() 
  { 
    Lock writeLock = acquireWriteLock();
 
    try 
    { 
      resetData(); 
    } 
    finally 
    { 
      releaseLock(writeLock);
    }