Created
April 6, 2016 14:32
-
-
Save joshcough/30c23cf0956637c99f5b8a0a58ea5a78 to your computer and use it in GitHub Desktop.
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: BigDecimal): JNumber = JNumber(value.toString) | |
def apply(value: BigInt): JNumber = JNumber(value.toString) | |
def apply(value: Byte): JNumber = JNumber(value.toString) | |
def apply(value: Double): JNumber = JNumber(value.toString) | |
def apply(value: Float): JNumber = JNumber(value.toString) | |
def apply(value: Int): JNumber = JNumber(value.toInt.toString) | |
def apply(value: Integer): JNumber = JNumber(value.toString) | |
def apply(value: Long): JNumber = JNumber(value.toString) | |
def apply(value: Short): JNumber = JNumber(value.toString) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment