code: public String formatNumeric(double offset, RelativeDateTimeUnit unit) {
          // TODO:
          // The full implementation of this depends on CLDR data that is not yet available,
          // see: http://unicode.org/cldr/trac/ticket/9165 Add more relative field data.
          // In the meantime do a quick bring-up by calling the old format method. When the
          // new CLDR data is available, update the data storage accordingly, rewrite this
          // to use it directly, and rewrite the old format method to call this new one;
          // that is covered by http://bugs.icu-project.org/trac/ticket/12171.
          RelativeUnit relunit = RelativeUnit.SECONDS;
          switch (unit) {
              case YEAR:      relunit = RelativeUnit.YEARS; break;
              case QUARTER:   relunit = RelativeUnit.QUARTERS; break;
              case MONTH:     relunit = RelativeUnit.MONTHS; break;
              case WEEK:      relunit = RelativeUnit.WEEKS; break;
              case DAY:       relunit = RelativeUnit.DAYS; break;
              case HOUR:      relunit = RelativeUnit.HOURS; break;
              case MINUTE:    relunit = RelativeUnit.MINUTES; break;
              case SECOND:    break; // set above
              default: // SUNDAY..SATURDAY
                  throw new UnsupportedOperationException("formatNumeric does not currently support RelativeUnit.SUNDAY..SATURDAY");
          }
          Direction direction = Direction.NEXT;
          if (offset < 0) {
              direction = Direction.LAST;
              offset = -offset;
          }
          String result = format(offset, direction, relunit);
          return (result != null)? result: "";
      }
docs: Format a combination of RelativeDateTimeUnit and numeric offset
  using a numeric style, e.g. "1 week ago", "in 1 week",
  "5 weeks ago", "in 5 weeks".
  
  @param offset    The signed offset for the specified unit. This
  will be formatted according to this object's
  NumberFormat object.
  @param unit      The unit to use when formatting the relative
  date, e.g. RelativeDateTimeUnit.WEEK,
  RelativeDateTimeUnit.FRIDAY.
  @return          The formatted string (may be empty in case of error)
  @hide draft / provisional / internal are hidden on Android