class LongMatchExprEvaluator implements LongMatchExprVisitor<Boolean, LongExpr> {

  @Override
  public @Nonnull Boolean visitLongComparison(LongComparison longComparison, LongExpr arg) {
    return longComparison
        .getComparator()
        .apply(
            arg.accept(LongExprEvaluator.instance(), null),
            longComparison.getExpr().accept(LongExprEvaluator.instance(), null))
        .getBooleanValue();
  }

}