3 import java.util.LinkedHashMap;
8 public abstract class Compute {
10 * @return list of strings to work with
12 public abstract List<String> getData();
13 /** Computes the strings to work with together with their associated descriptions.
14 * Shall be overriden in subclasses. By default delegates to {@link #getData}
15 * and uses the provided strings as both, the string and its description.
17 * @return name to description pairs to work with
19 public Map<String,String> getDataAndDescription() {
20 LinkedHashMap<String,String> ret = new LinkedHashMap<String, String>();
21 for (String s : getData()) {