public <T> List<T> getAll(AType<AttrList<T>> type) { AttrList<T> attrList = get(type); if (attrList == null) { return Collections.emptyList(); } return attrList.getList(); }
public <T> void add(AType<AttrList<T>> type, T obj) { AttrList<T> list = get(type); if (list == null) { list = new AttrList<T>(type); add(list); } list.getList().add(obj); }