Beispiel #1
0
  private MatchFormatter getFormatter(Match<Object, File> match) {
    for (MatchFormatter formatter : formatters.values()) {
      if (formatter.canFormat(match)) {
        return formatter;
      }
    }

    return defaultFormatter;
  }
Beispiel #2
0
 @Override
 protected String doInBackground() throws Exception {
   return formatter.format(match, context).trim();
 }
Beispiel #3
0
 public String preview() {
   return formatter.preview(match).trim();
 }