KT-4349 Make jet.Boolean implement Comparable

#KT-4349
This commit is contained in:
Evgeny Gerashchenko
2013-12-25 21:07:55 +04:00
parent c616b4baa0
commit 513be47544
38 changed files with 38 additions and 32 deletions
+3 -1
View File
@@ -37,7 +37,7 @@ public trait Hashable {
public fun equals(other : Any?) : Boolean
}
public class Boolean private () {
public class Boolean private () : Comparable<Boolean> {
public fun not() : Boolean
public fun and(other : Boolean) : Boolean
@@ -46,6 +46,8 @@ public class Boolean private () {
public fun xor(other : Boolean) : Boolean
public override fun compareTo(other : Boolean) : Int
public fun equals(other : Any?) : Boolean
}