@Test public final void testNumTasks() throws Exception { final Task initialTask = new SimpleTask(1); final Task initialTask2 = new SimpleTask(2); final TaskIterator iter = new TaskIterator(initialTask, initialTask2); assertEquals(2,iter.getNumTasks()); }
public int getNumTasks() { return numTasks; }
TaskIterator implements Iterator<Task> { public int getNumTasks() { return numTasks; } }
TaskIterator implements Iterator<Task> { public int getNumTasks() { return numTasks; } TaskIterator(int expectedNumTasks, final Task... initialTasks);  TaskIterator(final Task... initialTasks); }
TaskIterator implements Iterator<Task> { public int getNumTasks() { return numTasks; } TaskIterator(int expectedNumTasks, final Task... initialTasks);  TaskIterator(final Task... initialTasks); void insertTasksAfter(final Task referenceTask, final Task... newTasks); void insertTasksAfter(final Task referenceTask, final TaskIterator newTasks); boolean hasNext(); Task next(); void remove(); int getNumTasks(); void append(Task task); void append(TaskIterator taskIterator); }
TaskIterator implements Iterator<Task> { public int getNumTasks() { return numTasks; } TaskIterator(int expectedNumTasks, final Task... initialTasks);  TaskIterator(final Task... initialTasks); void insertTasksAfter(final Task referenceTask, final Task... newTasks); void insertTasksAfter(final Task referenceTask, final TaskIterator newTasks); boolean hasNext(); Task next(); void remove(); int getNumTasks(); void append(Task task); void append(TaskIterator taskIterator);  }