docs: public void noteValue(double val) {
          synchronized (swapLock) {
              Lock l = current.getLock();
              l.lock();
              try {
                  current.noteValue(val);
              } finally {
                  l.unlock();
              }
          }
      }