|
Scala example source code file (ExactNumeric.scala)
The Scala ExactNumeric.scala source code/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2003-2011, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ package scala.dbc package value; import java.math.BigInteger; import java.math.BigDecimal; @deprecated(DbcIsDeprecated, "2.9.0") abstract class ExactNumeric [Type] extends Value { val dataType: datatype.ExactNumeric[Type]; def sqlString = nativeValue.toString(); } @deprecated(DbcIsDeprecated, "2.9.0") object ExactNumeric { implicit def exactNumericToByte (obj:value.ExactNumeric[Byte]): Byte = obj.nativeValue; implicit def exactNumericToShort (obj:value.ExactNumeric[Short]): Short = obj.nativeValue; implicit def exactNumericToInt (obj:value.ExactNumeric[Int]): Int = obj.nativeValue; implicit def exactNumericToLong (obj:value.ExactNumeric[Long]): Long = obj.nativeValue; implicit def exactNumericToBigInteger (obj:value.ExactNumeric[BigInteger]): BigInteger = obj.nativeValue; implicit def exactNumericToBigDecimal (obj:value.ExactNumeric[BigDecimal]): BigDecimal = obj.nativeValue; } Other Scala examples (source code examples)Here is a short list of links related to this Scala ExactNumeric.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.