code: @Deprecated
      public Collection<Double> getSamples(String keyword, SampleType sampleType) {
          if (!keywords.contains(keyword)) {
              return null;
          }
          Set<Double> result = new TreeSet<Double>();
  
          if (rules.hasExplicitBoundingInfo) {
              FixedDecimalSamples samples = rules.getDecimalSamples(keyword, sampleType);
              return samples == null ? Collections.unmodifiableSet(result)
                      : Collections.unmodifiableSet(samples.addSamples(result));
          }
  
          // hack in case the rule is created without explicit samples
          int maxCount = isLimited(keyword, sampleType) ? Integer.MAX_VALUE : 20;
  
          switch (sampleType) {
          case INTEGER:
              for (int i = 0; i < 200; ++i) {
                  if (!addSample(keyword, i, maxCount, result)) {
                      break;
                  }
              }
              addSample(keyword, 1000000, maxCount, result); // hack for Welsh
              break;
          case DECIMAL:
              for (int i = 0; i < 2000; ++i) {
                  if (!addSample(keyword, new FixedDecimal(i/10d, 1), maxCount, result)) {
                      break;
                  }
              }
              addSample(keyword, new FixedDecimal(1000000d, 1), maxCount, result); // hack for Welsh
              break;
          }
          return result.size() == 0 ? null : Collections.unmodifiableSet(result);
      }
docs: Returns a list of values for which select() would return that keyword,
  or null if the keyword is not defined.
  The returned collection is unmodifiable.
  The returned list is not complete, and there might be additional values that
  would return the keyword. The keyword might be defined, and yet have an empty set of samples,
  IF there are samples for the other sampleType.
  
  @param keyword the keyword to test
  @param sampleType the type of samples requested, INTEGER or DECIMAL
  @return a list of values matching the keyword.
  @deprecated ICU internal only
  @hide original deprecated declaration
  @hide draft / provisional / internal are hidden on Android