Code example for PriorityQueue

Methods: add

0
counter.put(newCount, count + 1);
         
        Time appOver = TimeUtils.getNextYear(getTime()); 
        appOver = TimeUtils.getStartOfDay(appOver).getDiffTime(0, 0, 0, 23, 59); 
        events.add(new AppEndEvent(appOver, plannedChange));
         
        AppRemoveSetEvent remove = new AppRemoveSetEvent(appOver, old);
        events.add(remove);
        return newCount;
    } 
}