Added some toString() implementations

This commit is contained in:
dankito 2020-08-06 01:49:31 +02:00
parent 56caa78bf8
commit 82485a29b1
3 changed files with 15 additions and 0 deletions

View File

@ -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)
}
}

View File

@ -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()
}
}

View File

@ -37,4 +37,9 @@ actual class File actual constructor(path: String) : java.io.File(path) {
return super.mkdirs()
}
override fun toString(): String {
return absolutePath
}
}