code: private Data getData(ULocale locale, CompactStyle style) {
          CompactDecimalDataCache.DataBundle bundle = cache.get(locale);
          switch (style) {
          case SHORT:
              return bundle.shortData;
          case LONG:
              return bundle.longData;
          default:
              return bundle.shortData;
          }
      }
docs: Gets the data for a particular locale and style. If style is unrecognized,
  we just return data for CompactStyle.SHORT.
  @param locale The locale.
  @param style The style.
  @return The data which must not be modified.