ExprIntervalValue extends AbstractExprValue { @Override public boolean equal(ExprValue other) { return interval.equals(other.intervalValue()); }  @Override TemporalAmount intervalValue(); @Override int compare(ExprValue other); @Override boolean equal(ExprValue other); @Override TemporalAmount value(); @Override ExprType type(); TemporalUnit unit();  }
@Test public void equal() { ExprValue v1 = new ExprIntervalValue(Duration.ofMinutes(1)); ExprValue v2 = ExprValueUtils.intervalValue(Duration.ofSeconds(60)); assertTrue(v1.equals(v2)); }