collections.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 16 行
SCALA
16 行
package mixins;import scala.collection.mutable._;class Collections extends HashSet[Int] with ObservableSet[Int,Collections] { override def +=(elem: Int): Unit = super.+=(elem); override def -=(elem: Int): Unit = super.-=(elem); override def clear: Unit = super.clear;}object collections extends Collections;//class Collections1 extends HashSet[Int] with ObservableSet[Int,Collections1];//object collections1 extends Collections1;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?