 {
      this.minValue = minValueOrExpected;
      this.maxValue = opt_maxValue;
    } else {
      this.expected = minValueOrExpected;
    }
  }

  FilterHasDuration.prototype = {
    __proto__: tr.e.tquery.Filter.prototype,

    evaluate(context) {
      if (context.event.duration === undefined) return false;
      if (this.minValue !== undefined && this.maxValue !== undefined) {
        return context.event.duration >= this.minValue &&
               context.event.duration <= this.maxValue;
      }
     