File: t2939.scala

package info (click to toggle)
scala 2.11.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 62,924 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,135; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (13 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
import collection._

object Proxies {
  class C1 extends MapProxy[Int,Int] { def self = Map[Int,Int]() }
  class C2 extends mutable.MapProxy[Int,Int] { def self = mutable.Map[Int,Int]() }
  class C3 extends immutable.MapProxy[Int,Int] { def self = immutable.Map[Int,Int]() }

  class C4 extends SetProxy[Int] { def self = Set[Int]() }
  class C5 extends mutable.SetProxy[Int] { def self = mutable.Set[Int]() }
  class C6 extends immutable.SetProxy[Int] { def self = immutable.Set[Int]() }

  class C7 extends SeqProxy[Int] { def self = Seq[Int]() }
}