code: public static Metric<CharSequence> charSequenceMetric(final StringMetric stringMetric) {
          return new Metric<CharSequence>() {
              @Override
              public int distance(CharSequence x, CharSequence y) {
                  return stringMetric.distance(x, y);
              }
          };
      }
docs: Returns a {@link Metric} that delegates to the given {@link StringMetric}.