/* ListWithCursors.java ** An instance of an implementing class represents a list in which one ** uses a cursor (specifically, an instance of a class that implements the ** interface ListCursor) in order to navigate among (and access the data items ** contained in) the nodes in the list. ** ** Author: R. McCloskey ** Date: 2012 */ public interface ListWithCursors { /* Reports whether or not this list has any items in it. */ boolean isEmpty(); /* Reports the number of items in this list. */ int lengthOf(); /* Returns a new cursor for this list. */ ListCursor getCursor(); }