@SuppressWarnings("unchecked") private <T> void addAttr(Attribute<?> attribute) { final Attribute<T> a = (Attribute<T>) attribute; attr(a.key()).set(a.get()); }
@SuppressWarnings("unchecked") private <T> void addAttr(Attribute<?> attribute) { final Attribute<T> a = (Attribute<T>) attribute; attr(a.key()).set(a.get()); }
@Override public String toString() { final ToStringHelper helper = MoreObjects.toStringHelper(""); for (Iterator<Attribute<?>> i = attrs(); i.hasNext();) { final Attribute<?> a = i.next(); helper.add(a.key().name(), a.get()); } return helper.toString(); }