List of utility methods to do Set to String
String | toString(Set Returns first value from a set (used to find values of one-valued attributes) Iterator<String> it = attribute.iterator(); if (it.hasNext()) { return it.next(); return null; |
String[] | toStringArray(final Set> set) Return a Set as a String array final String[] f = new String[set.size()]; int i = 0; for (final Iterator<?> iter = set.iterator(); iter.hasNext(); i++) { f[i] = iter.next().toString(); return f; |
Set | toStringSet(String... metrics) to String Set return new LinkedHashSet<String>(Arrays.asList(metrics)); |