@@ -34,37 +34,37 @@ val topLevelDri = org.jetbrains.dokka.links.DRI.Companion.getTopLevel
34
34
type SourceSetWrapper = DokkaConfiguration $DokkaSourceSet
35
35
type DokkaSourceSet = DokkaConfiguration .DokkaSourceSet
36
36
37
- extension [T ] (wrapper : SourceSetWrapper ):
37
+ extension [T ] (wrapper : SourceSetWrapper )
38
38
def toSet : JSet [DokkaConfiguration $DokkaSourceSet ] = JSet (wrapper)
39
39
def toMap (value : T ): JMap [DokkaConfiguration $DokkaSourceSet , T ] = JMap (wrapper -> value)
40
40
41
- extension [T ] (wrapper : DokkaSourceSet ):
41
+ extension [T ] (wrapper : DokkaSourceSet )
42
42
// when named `toSet` fails in runtime -- TODO: create a minimal!
43
43
// def toSet: JSet[DokkaConfiguration$DokkaSourceSet] = JSet(wrapper.asInstanceOf[SourceSetWrapper])
44
44
def asSet : JSet [DokkaConfiguration $DokkaSourceSet ] = JSet (wrapper.asInstanceOf [SourceSetWrapper ])
45
45
def asMap (value : T ): JMap [DokkaConfiguration $DokkaSourceSet , T ] = JMap (wrapper.asInstanceOf [SourceSetWrapper ] -> value)
46
46
47
- extension (sourceSets : JList [DokkaSourceSet ]):
47
+ extension (sourceSets : JList [DokkaSourceSet ])
48
48
def asDokka : JSet [SourceSetWrapper ] = sourceSets.asScala.toSet.asJava.asInstanceOf [JSet [SourceSetWrapper ]]
49
49
def toDisplaySourceSet = sourceSets.asScala.map(ss => DisplaySourceSet (ss.asInstanceOf [SourceSetWrapper ])).toSet.asJava
50
50
51
- extension (sourceSets : Set [SourceSetWrapper ]):
51
+ extension (sourceSets : Set [SourceSetWrapper ])
52
52
def toDisplay = sourceSets.map(DisplaySourceSet (_)).asJava
53
53
54
- extension [V ] (a : WithExtraProperties [_]):
54
+ extension [V ] (a : WithExtraProperties [_])
55
55
def get (key : ExtraProperty .Key [_, V ]): V = a.getExtra().getMap().get(key).asInstanceOf [V ]
56
56
57
- extension [E <: WithExtraProperties [E ]] (a : E ):
57
+ extension [E <: WithExtraProperties [E ]] (a : E )
58
58
def put (value : ExtraProperty [_ >: E ]): E = a.withNewExtras(a.getExtra plus value)
59
59
60
- extension [V ] (map : JMap [SourceSetWrapper , V ]):
60
+ extension [V ] (map : JMap [SourceSetWrapper , V ])
61
61
def defaultValue : V = map.values.asScala.head
62
62
63
- extension [V ](jlist : JList [V ]):
63
+ extension [V ](jlist : JList [V ])
64
64
def ++ (other : JList [V ]): JList [V ] =
65
65
Stream .of(jlist, other).flatMap(_.stream).collect(Collectors .toList())
66
66
67
- extension [V ](jset : JSet [V ]):
67
+ extension [V ](jset : JSet [V ])
68
68
def ++ (other : JSet [V ]): JSet [V ] =
69
69
Stream .of(jset, other).flatMap(_.stream).collect(Collectors .toSet())
70
70
0 commit comments