docs: public static Interval parseInterval(String str) {
          String[] ss = str.split("-");
  
          Interval interval = new Interval();
          switch (ss.length) {
              case 1:
                  interval.start = Long.parseLong(ss[0]);
                  interval.stop = interval.start + 1;
                  break;
              case 2:
                  interval.start = Long.parseLong(ss[0]);
                  interval.stop = Long.parseLong(ss[1]) + 1;
                  break;
              default:
                  throw new RuntimeException(String.format("parseInterval failed due to wrong format: %s", str));
          }
  
          return interval;
      }