private void addToEmptyBackward(Items list) { if (emptyItemsWithID == null) emptyItemsWithID = new DoublyLinkedListImpl<Items>(); Enumeration<Items> it = emptyItemsWithID.reverseElements(); while (it.hasMoreElements()) { Items compare = it.nextElement(); if (compare.timeLastSent <= list.timeLastSent) { emptyItemsWithID.insertNext(compare, list); return; } } emptyItemsWithID.unshift(list); }