class ScheduledJobQueue implements Iterable<ScheduledJob> {

    @Override
    public synchronized Iterator<ScheduledJob> iterator()
    {
        Iterator<ScheduledJob> baseIterator = new ManyToOneIterator<>(myJobQueues.values(), myComparator);

        return new RunnableJobIterator(baseIterator);
    }

    public  ScheduledJobQueue(Comparator<ScheduledJob> comparator);

}