abstractlistiterator.java

来自「赫夫曼编译码器: 用哈夫曼编码进行通信可以大大提高信道利用率」· Java 代码 · 共 40 行

JAVA
40
字号
package structure;import java.util.ListIterator;/** * Base class for the implementation of a list Iterator.  * The methods provided in this class have no executable bodies and will throw * errors if the user attempts to invoke them.   */public abstract class AbstractListIterator extends AbstractIterator implements java.util.ListIterator{    /**     * Default constructor (for base class invocation).     * Does nothing.       * Remind Sun (<a href="mailto:jdk-comments@java.sun.com">jdk-comments@java.sun.com</a>) that automatically implemented default     * constructors are a silly thing.     *     * @post does nothing     */    public AbstractListIterator()    {    }    public abstract Object get();    public void remove()    {	Assert.fail("remove not implemented.");    }    public void set(java.lang.Object o)    {	Assert.fail("set not implemented.");    }    public void add(java.lang.Object o)    {	Assert.fail("set not implemented.");    }}

⌨️ 快捷键说明

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