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.
315316317318319320321322323324325
// 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(); } }
17691770177117721773177417751776177717781779
// 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)); } }
317318319320321322323324325326327
e = sorts.elements(); while (e.hasMoreElements()) { Sort sort = (Sort) e.nextElement(); if (sort != null) sort.drop(this); } sorts.removeAllElements(); freeSortIds.clear(); } }
17651766176717681769177017711772177317741775
// should call close on the sort. Sort sort = (Sort) sorts.elementAt((int) sortid); if (sort != null) { sort.drop(this); sorts.setElementAt(null, (int) sortid); freeSortIds.add(ReuseFactory.getInteger((int) sortid)); } }
309310311312313314315316317318319
e = sorts.elements(); while (e.hasMoreElements()) { Sort sort = (Sort) e.nextElement(); if (sort != null) sort.drop(this); } sorts.removeAllElements(); } } }
17441745174617471748174917501751175217531754
// should call close on the sort. Sort sort = (Sort) sorts.elementAt((int) sortid); if (sort != null) { sort.drop(this); sorts.setElementAt(null, (int) sortid); } } /**
310311312313314315316317318319320
// element from the list. for (int i = sorts.size() - 1; i >= 0; i--) { Sort sort = sorts.get(i); if (sort != null) sort.drop(this); } sorts.clear(); freeSortIds.clear(); } }
17321733173417351736173717381739174017411742
// should call close on the sort. Sort sort = sorts.get((int) sortid); if (sort != null) { sort.drop(this); sorts.set((int) sortid, null); freeSortIds.add(ReuseFactory.getInteger((int) sortid)); } }
312313314315316317318319320321322
17501751175217531754175517561757175817591760