コード例 #1
0
 @Override
 // --------------------------------------------------------
 public Epl add(Epl epl)
       // --------------------------------------------------------
     {
   if (this.get(epl.getId()) != null) {
     return null;
   }
   svcDB.put(epl.getId(), epl);
   return epl;
 }
コード例 #2
0
 @Override
 // --------------------------------------------------------
 public void dump(int tab)
       // --------------------------------------------------------
     {
   Dbg.p(tab, "Epl Repo: " + svcDB.size() + " entrie(s)");
   int numSvc = 0;
   for (Epl curEpl : svcDB.values()) {
     numSvc++;
     Dbg.p(tab + 1, "<Entry " + numSvc + ">");
     curEpl.dump(tab + 2);
   }
 }
コード例 #3
0
 @Override
 // --------------------------------------------------------
 public Epl update(Epl epl)
       // --------------------------------------------------------
     {
   // put returns null if epl did not exist, other returns epl as it stood prior to put
   return svcDB.put(epl.getId(), epl);
 }