Code example for AtomicDouble

Methods: set

0
    public float getCurrentActivityProgress() { 
        return (float) currentProgress.get();
    } 
 
    public void setCurrentProgress(float currentProgress) {
        this.currentProgress.set(currentProgress);
    } 
 
    @Override 
    public synchronized String getErrorMessage() {
        return errorMessage;
    } 
 
    public synchronized void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
        status = Status.FAILED; 
    } 
 
    public synchronized void setComplete() { 
        status = Status.COMPLETE; 
Contextual code suggestions in your IDE  Get Codota for Java