Exemplo n.º 1
0
  public static Attributes attributes(String... attrs) {
    Attributes res = new Attributes();
    for (String attr : attrs) {
      res.generic(attr, attr);
    }

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

    return res;
  }