Created
September 28, 2021 21:24
-
-
Save dwijnand/0b1d4b23e0afc3b48cc330d2913dde73 to your computer and use it in GitHub Desktop.
Which one's easier to scan?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object JNumber { | |
def apply(value: Int): JNumber = JNumber(value.toInt.toString) | |
def apply(value: Integer): JNumber = JNumber(value.toString) | |
def apply(value: Byte): JNumber = JNumber(value.toString) | |
def apply(value: Short): JNumber = JNumber(value.toString) | |
def apply(value: Long): JNumber = JNumber(value.toString) | |
def apply(value: BigInt): JNumber = JNumber(value.toString) | |
def apply(value: BigDecimal): JNumber = JNumber(value.toString) | |
def apply(value: Float): JNumber = JNumber(value.toString) | |
def apply(value: Double): JNumber = JNumber(value.toString) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object JNumber { | |
def apply(value: Int): JNumber = JNumber(value.toInt.toString) | |
def apply(value: Integer): JNumber = JNumber(value.toString) | |
def apply(value: Byte): JNumber = JNumber(value.toString) | |
def apply(value: Short): JNumber = JNumber(value.toString) | |
def apply(value: Long): JNumber = JNumber(value.toString) | |
def apply(value: BigInt): JNumber = JNumber(value.toString) | |
def apply(value: BigDecimal): JNumber = JNumber(value.toString) | |
def apply(value: Float): JNumber = JNumber(value.toString) | |
def apply(value: Double): JNumber = JNumber(value.toString) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment