summaryrefslogtreecommitdiff
path: root/src/library/scala/Double.scala
diff options
context:
space:
mode:
authorAndrew Phillips <demobox1@yahoo.co.uk>2012-12-31 13:09:04 +0000
committerAndrew Phillips <demobox1@yahoo.co.uk>2013-04-22 19:31:29 +0200
commit6f47cafcd3e62714e81aa30e940d63043cb61e64 (patch)
tree6e27f4ba3e200d05a508dfe4a25740fa676070ef /src/library/scala/Double.scala
parent240fa301614e591e7684211642fedb4863b57a5c (diff)
downloadscala-6f47cafcd3e62714e81aa30e940d63043cb61e64.tar.gz
scala-6f47cafcd3e62714e81aa30e940d63043cb61e64.tar.bz2
scala-6f47cafcd3e62714e81aa30e940d63043cb61e64.zip
SI-6898 Document AnyVal box and unbox implemention by BoxesRunTime
- Added @boxRunTimeDoc@ and @unboxRunTimeDoc@ tokens to AnyVals - Doc comments refer to BoxesRunTime.java in the Scala repo - No comment for Unit
Diffstat (limited to 'src/library/scala/Double.scala')
-rw-r--r--src/library/scala/Double.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/library/scala/Double.scala b/src/library/scala/Double.scala
index 977ebd19d6..ce081bbec1 100644
--- a/src/library/scala/Double.scala
+++ b/src/library/scala/Double.scala
@@ -382,6 +382,8 @@ object Double extends AnyValCompanion {
/** Transform a value type into a boxed reference type.
*
+ * Runtime implementation determined by `scala.runtime.BoxesRunTime.boxToDouble`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
+ *
* @param x the Double to be boxed
* @return a java.lang.Double offering `x` as its underlying value.
*/
@@ -391,6 +393,8 @@ object Double extends AnyValCompanion {
* method is not typesafe: it accepts any Object, but will throw
* an exception if the argument is not a java.lang.Double.
*
+ * Runtime implementation determined by `scala.runtime.BoxesRunTime.unboxToDouble`. See [[https://github.com/scala/scala src/library/scala/runtime/BoxesRunTime.java]].
+ *
* @param x the java.lang.Double to be unboxed.
* @throws ClassCastException if the argument is not a java.lang.Double
* @return the Double resulting from calling doubleValue() on `x`