code: public void setInterval(Interval interval) {
          if (interval == null) {
              interval = INTERVAL_FACTORY.getInstance();
          }
          this.interval = interval;
      }
docs: Sets the valid interval.
  
  @param interval an <code>Interval</code>.