Пример #1
0
 public Macro get(String name) {
   Map m = db.getMap(NAME);
   Macro c;
   for (Iterator i = m.values().iterator(); i.hasNext(); ) {
     c = (Macro) i.next();
     if (c.getName().equals(name)) {
       return c;
     }
   }
   return null;
 }
Пример #2
0
 public Collection getAll() {
   Map m = db.getMap(NAME);
   return m.values();
 }