code: public double getAndAdd(int index, double delta) {
          writeLock.lock();
          double value = vector.get(index);
          vector.set(index, value + delta);
          writeLock.unlock();
          return value;
      }
docs: {@inheritDoc}