code: public boolean compareAndSet(double expect, double update) {
      long e = Double.doubleToLongBits(expect);
      long u = Double.doubleToLongBits(update);
      return value.compareAndSet(e, u);
    }
docs: Set the value to  {@code amount} if the current value is {@code expect}. Return true if the
  value was updated.