TupleN classes and their usages replaced by Pair and Triple

(KT-2358 Drop tuples)

 #KT-2358 In Progress
This commit is contained in:
Andrey Breslav
2012-09-07 21:23:38 +04:00
parent 8333448f10
commit 89fd0526cf
18 changed files with 58 additions and 59 deletions
@@ -30,8 +30,8 @@ var JFrame.title: String
setTitle(t)
}
var JFrame.size: #(Int, Int)
get() = #(getSize().sure().getWidth().toInt(), getSize().sure().getHeight().toInt())
var JFrame.size: Pair<Int, Int>
get() = Pair(getSize().sure().getWidth().toInt(), getSize().sure().getHeight().toInt())
set(dim) {
setSize(Dimension(dim._1, dim._2))
}
@@ -14,7 +14,7 @@ Enter some text here!
val f = frame("Kool Kotlin Swing Demo") {
exitOnClose()
val test = 12
size = #(500, 300)
size = Pair(500, 300)
val textArea = JTextArea(greeting)