Added some toString() implementations
This commit is contained in:
parent
56caa78bf8
commit
82485a29b1
|
@ -41,4 +41,9 @@ actual class BigDecimal(val decimal: NSDecimalNumber) { // it's almost impossibl
|
|||
return super.equals(other)
|
||||
}
|
||||
|
||||
|
||||
override fun toString(): String {
|
||||
return decimal.description ?: decimal.descriptionWithLocale(NSLocale.currentLocale)
|
||||
}
|
||||
|
||||
}
|
|
@ -27,4 +27,9 @@ actual class File actual constructor(path: String) : NSURL(fileURLWithPath = pat
|
|||
return NSFileManager.defaultManager.createDirectoryAtURL(this, true, null, null)
|
||||
}
|
||||
|
||||
|
||||
override fun description(): String? {
|
||||
return getAbsolutePath()
|
||||
}
|
||||
|
||||
}
|
|
@ -37,4 +37,9 @@ actual class File actual constructor(path: String) : java.io.File(path) {
|
|||
return super.mkdirs()
|
||||
}
|
||||
|
||||
|
||||
override fun toString(): String {
|
||||
return absolutePath
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue