listiterator.java

来自「Linked List implementation for education」· Java 代码 · 共 27 行

JAVA
27
字号
// The ListIterator interface allows access of a position in a linked list.// This interface contains a subset of the methods of the//  standard java.util.ListIterator interface. The methods for//  backward traversal are not included.public interface ListIterator{   //Move Moves the iterator past the next element.   Object next();   // Tests if there is an element after the iterator position.   boolean hasNext();   // Adds an element before the iterator position   // and moves the iterator past the inserted element.   void add(Object element);   // Removes the last traversed element. This method may   // only be called after a call to the next() method.   void remove();   // Sets the last traversed element to a different value.   void set(Object element);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?