bufferiterator.scala

来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 32 行

SCALA
32
字号
/*                     __                                               *\**     ________ ___   / /  ___     Scala API                            ****    / __/ __// _ | / /  / _ |    (c) 2006-2007, LAMP/EPFL             ****  __\ \/ /__/ __ |/ /__/ __ |                                         **** /____/\___/_/ |_/____/_/ | |                                         ****                          |/                                          **\*                                                                      */// $Id: BufferIterator.scala 13113 2007-10-19 12:53:52Z mcdirmid $package scala.collection.jcl;/** An iterator for a buffer that supports element update and insertion. * *  @author Sean McDirmid */trait BufferIterator[K,A] extends SeqIterator[K,A] {  /** Sets the element before this iterator's cursor to "a."   *  Replaces either the last element returned by "next" or,   *  if previous was called,   *  the next element that would be return by "previous."   */  def set(a: A): Unit;  /** Inserts "a" after the iterator's cursor.   *  If next was last called, "a" is inserted after the element returned.   *  If previous was last called, "a" is inserted before the element returned.    */  def add(a: A): Unit;}

⌨️ 快捷键说明

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