code: public void set(T value) {
          try {
              lock.writeLock().lock();
  
              this.value = value;
          } finally {
              lock.writeLock().unlock();
          }
      }
docs: This method assigns new value
  @param value