use of net.sourceforge.processdash.data.StringData in project processdash by dtuma.
the class GlobEngine method asCollection.
private static Collection asCollection(SimpleData data) {
if (!data.test())
return null;
if (data instanceof StringData)
data = ((StringData) data).asList();
if (data instanceof ListData) {
Collection words = new HashSet();
words.addAll(((ListData) data).asList());
return words;
} else
return asCollection(data.format());
}
Aggregations