ExprIntervalValue extends AbstractExprValue { @Override public TemporalAmount intervalValue() { return interval; }  @Override TemporalAmount intervalValue(); @Override int compare(ExprValue other); @Override boolean equal(ExprValue other); @Override TemporalAmount value(); @Override ExprType type(); TemporalUnit unit();  }
@Test public void equals_to_self() { ExprValue interval = ExprValueUtils.intervalValue(Duration.ofNanos(1000)); assertEquals(interval.intervalValue(), Duration.ofNanos(1000)); }