NumberSimilarly

一个提供数值转化能力的接口。

Since

3.1.0

Inheritors

Functions

Link copied to clipboard
abstract fun toByte(): Byte

将当前数字转为 Byte. 类似于 Number.toByte.

Link copied to clipboard
abstract fun toChar(): Char

将当前数字转为 Char. 类似于 Number.toChar.

Link copied to clipboard
abstract fun toDouble(): Double

将当前数字转为 Double. 类似于 Number.toDouble.

Link copied to clipboard
abstract fun toFloat(): Float

将当前数字转为 Float. 类似于 Number.toFloat.

Link copied to clipboard
abstract fun toInt(): Int

将当前数字转为 Int. 类似于 Number.toInt.

Link copied to clipboard
abstract fun toLong(): Long

将当前数字转为 Long. 类似于 Number.toLong.

Link copied to clipboard
abstract fun toShort(): Short

将当前数字转为 Short. 类似于 Number.toShort.