public static Attributes attributes(String... attrs) { Attributes res = new Attributes(); for (String attr : attrs) { res.generic(attr, attr); } return res; }
public static Attributes attributes(Enum<?>... attrs) { Attributes res = new Attributes(); for (Enum<?> attr : attrs) { res.generic(attr.toString(), attr.toString()); } return res; }