Code example for AtomicInteger

Methods: getAndSet

0
        Bundle extras )
    { 
      try 
      { 
        if ( this.provider.equals( provider ) &&
            status != lastState.getAndSet( status ) )
        { 
          if ( status == LocationProvider.OUT_OF_SERVICE )
          { 
            Logger.getInstance().warning( 
                this, this.provider + " provider out of service" );
          } 
        } 
      } 
      catch ( Exception e )
      { 
        Logger.getInstance().error( this, "Exception in onStatusChanged" );
      } 
    } 
     
    /*