code: public T set(final T newValue) {
          if(continuous!=null)
           continuous.offer(newValue);
  
          setDiscreteIfDiff(newValue);
          return newValue;
      }
docs: Set the current value of this signal
  
  @param newValue Replacement value
  @return newValue