Пример #1
0
 public <T> List<T> getAll(AType<AttrList<T>> type) {
   AttrList<T> attrList = get(type);
   if (attrList == null) {
     return Collections.emptyList();
   }
   return attrList.getList();
 }
Пример #2
0
 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);
 }