Code example for AtomicDouble

0
     * Create a new instance with the specified configuration. 
     * 
     * @param config configuration for this gauge 
     */ 
    public DoubleGauge(MonitorConfig config) {
        super(config, new AtomicDouble(0.0));
        number = (AtomicDouble) getBackingNumber();
    } 
 
    /** 
     * Set the current value. 
     */ 
    public void set(Double n) {
        number.set(n);
    } 
 
    /** 
     * Returns a reference to the {@link com.google.common.util.concurrent.AtomicDouble}. 
     */ 
    public AtomicDouble getNumber() {
Experience pair programming with AI  Get Codota for Java