Note: drop is like close, it has to be tolerant of being called more than once, it must succeed or at least not throw any exceptions.
312313314315316317318319320321322
// element from the list. for (int i = sorts.size() - 1; i >= 0; i--) { Sort sort = (Sort) sorts.get(i); if (sort != null) sort.drop(this); } sorts.clear(); freeSortIds.clear(); } }
17321733173417351736173717381739174017411742
// should call close on the sort. Sort sort = (Sort) sorts.get((int) sortid); if (sort != null) { sort.drop(this); sorts.set((int) sortid, null); freeSortIds.add(ReuseFactory.getInteger((int) sortid)); } }
308309310311312313314315316317318
e = sorts.elements(); while (e.hasMoreElements()) { Sort sort = (Sort) e.nextElement(); if (sort != null) sort.drop(this); } sorts.removeAllElements(); } } }
16181619162016211622162316241625162616271628
// should call close on the sort. Sort sort = (Sort) sorts.elementAt((int) sortid); if (sort != null) { sort.drop(this); sorts.setElementAt(null, (int) sortid); } } /**
17431744174517461747174817491750175117521753
315316317318319320321322323324325
17531754175517561757175817591760176117621763
17501751175217531754175517561757175817591760