summaryrefslogtreecommitdiff
path: root/src/library/scala/Double.scala
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2011-09-02 18:34:47 +0000
committerJosh Suereth <joshua.suereth@gmail.com>2011-09-02 18:34:47 +0000
commit9183117cb473712218565468f33b966437e5d3df (patch)
tree76338808e32013d85cb8e2b6f375f2435c6d4c38 /src/library/scala/Double.scala
parent6d10bd53c5eaccd48197f8195472cdd480668783 (diff)
downloadscala-9183117cb473712218565468f33b966437e5d3df.tar.gz
scala-9183117cb473712218565468f33b966437e5d3df.tar.bz2
scala-9183117cb473712218565468f33b966437e5d3df.zip
Some great AnyVal class hierarchy documentation...
Some great AnyVal class hierarchy documentation from Iain McGinniss. No Review.
Diffstat (limited to 'src/library/scala/Double.scala')
-rw-r--r--src/library/scala/Double.scala242
1 files changed, 240 insertions, 2 deletions
diff --git a/src/library/scala/Double.scala b/src/library/scala/Double.scala
index 108c6207bb..b4bb9f0432 100644
--- a/src/library/scala/Double.scala
+++ b/src/library/scala/Double.scala
@@ -10,8 +10,9 @@
package scala
-/** `Double` is a member of the value classes, those whose instances are
- * not represented as objects by the underlying host system.
+/** `Double`, a 64-bit IEEE-754 floating point number (equivalent to Java's `double` primitive type) is a
+ * subtype of [[scala.AnyVal]], meaning that instances of `Double` are not
+ * represented by an object in the underlying runtime system.
*
* There is an implicit conversion from [[scala.Double]] => [[scala.runtime.RichDouble]]
* which provides useful non-primitive operations.
@@ -25,97 +26,334 @@ final class Double extends AnyVal {
def toFloat: Float = sys.error("stub")
def toDouble: Double = sys.error("stub")
+ /**
+ * @return this value, unmodified
+ */
def unary_+ : Double = sys.error("stub")
+ /**
+ * @return the negation of this value
+ */
def unary_- : Double = sys.error("stub")
def +(x: String): String = sys.error("stub")
+ /**
+ * @return `true` if this value is equal x, `false` otherwise
+ */
def ==(x: Byte): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is equal x, `false` otherwise
+ */
def ==(x: Short): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is equal x, `false` otherwise
+ */
def ==(x: Char): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is equal x, `false` otherwise
+ */
def ==(x: Int): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is equal x, `false` otherwise
+ */
def ==(x: Long): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is equal x, `false` otherwise
+ */
def ==(x: Float): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is equal x, `false` otherwise
+ */
def ==(x: Double): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is not equal to x, `false` otherwise
+ */
def !=(x: Byte): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is not equal to x, `false` otherwise
+ */
def !=(x: Short): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is not equal to x, `false` otherwise
+ */
def !=(x: Char): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is not equal to x, `false` otherwise
+ */
def !=(x: Int): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is not equal to x, `false` otherwise
+ */
def !=(x: Long): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is not equal to x, `false` otherwise
+ */
def !=(x: Float): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is not equal to x, `false` otherwise
+ */
def !=(x: Double): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than x, `false` otherwise
+ */
def <(x: Byte): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than x, `false` otherwise
+ */
def <(x: Short): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than x, `false` otherwise
+ */
def <(x: Char): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than x, `false` otherwise
+ */
def <(x: Int): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than x, `false` otherwise
+ */
def <(x: Long): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than x, `false` otherwise
+ */
def <(x: Float): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than x, `false` otherwise
+ */
def <(x: Double): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than or equal to x, `false` otherwise
+ */
def <=(x: Byte): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than or equal to x, `false` otherwise
+ */
def <=(x: Short): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than or equal to x, `false` otherwise
+ */
def <=(x: Char): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than or equal to x, `false` otherwise
+ */
def <=(x: Int): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than or equal to x, `false` otherwise
+ */
def <=(x: Long): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than or equal to x, `false` otherwise
+ */
def <=(x: Float): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is less than or equal to x, `false` otherwise
+ */
def <=(x: Double): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than x, `false` otherwise
+ */
def >(x: Byte): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than x, `false` otherwise
+ */
def >(x: Short): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than x, `false` otherwise
+ */
def >(x: Char): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than x, `false` otherwise
+ */
def >(x: Int): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than x, `false` otherwise
+ */
def >(x: Long): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than x, `false` otherwise
+ */
def >(x: Float): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than x, `false` otherwise
+ */
def >(x: Double): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than or equal to x, `false` otherwise
+ */
def >=(x: Byte): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than or equal to x, `false` otherwise
+ */
def >=(x: Short): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than or equal to x, `false` otherwise
+ */
def >=(x: Char): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than or equal to x, `false` otherwise
+ */
def >=(x: Int): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than or equal to x, `false` otherwise
+ */
def >=(x: Long): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than or equal to x, `false` otherwise
+ */
def >=(x: Float): Boolean = sys.error("stub")
+ /**
+ * @return `true` if this value is greater than or equal to x, `false` otherwise
+ */
def >=(x: Double): Boolean = sys.error("stub")
+ /**
+ * @return the sum of this value and x
+ */
def +(x: Byte): Double = sys.error("stub")
+ /**
+ * @return the sum of this value and x
+ */
def +(x: Short): Double = sys.error("stub")
+ /**
+ * @return the sum of this value and x
+ */
def +(x: Char): Double = sys.error("stub")
+ /**
+ * @return the sum of this value and x
+ */
def +(x: Int): Double = sys.error("stub")
+ /**
+ * @return the sum of this value and x
+ */
def +(x: Long): Double = sys.error("stub")
+ /**
+ * @return the sum of this value and x
+ */
def +(x: Float): Double = sys.error("stub")
+ /**
+ * @return the sum of this value and x
+ */
def +(x: Double): Double = sys.error("stub")
+ /**
+ * @return the difference of this value and x
+ */
def -(x: Byte): Double = sys.error("stub")
+ /**
+ * @return the difference of this value and x
+ */
def -(x: Short): Double = sys.error("stub")
+ /**
+ * @return the difference of this value and x
+ */
def -(x: Char): Double = sys.error("stub")
+ /**
+ * @return the difference of this value and x
+ */
def -(x: Int): Double = sys.error("stub")
+ /**
+ * @return the difference of this value and x
+ */
def -(x: Long): Double = sys.error("stub")
+ /**
+ * @return the difference of this value and x
+ */
def -(x: Float): Double = sys.error("stub")
+ /**
+ * @return the difference of this value and x
+ */
def -(x: Double): Double = sys.error("stub")
+ /**
+ * @return the product of this value and x
+ */
def *(x: Byte): Double = sys.error("stub")
+ /**
+ * @return the product of this value and x
+ */
def *(x: Short): Double = sys.error("stub")
+ /**
+ * @return the product of this value and x
+ */
def *(x: Char): Double = sys.error("stub")
+ /**
+ * @return the product of this value and x
+ */
def *(x: Int): Double = sys.error("stub")
+ /**
+ * @return the product of this value and x
+ */
def *(x: Long): Double = sys.error("stub")
+ /**
+ * @return the product of this value and x
+ */
def *(x: Float): Double = sys.error("stub")
+ /**
+ * @return the product of this value and x
+ */
def *(x: Double): Double = sys.error("stub")
+ /**
+ * @return the quotient of this value and x
+ */
def /(x: Byte): Double = sys.error("stub")
+ /**
+ * @return the quotient of this value and x
+ */
def /(x: Short): Double = sys.error("stub")
+ /**
+ * @return the quotient of this value and x
+ */
def /(x: Char): Double = sys.error("stub")
+ /**
+ * @return the quotient of this value and x
+ */
def /(x: Int): Double = sys.error("stub")
+ /**
+ * @return the quotient of this value and x
+ */
def /(x: Long): Double = sys.error("stub")
+ /**
+ * @return the quotient of this value and x
+ */
def /(x: Float): Double = sys.error("stub")
+ /**
+ * @return the quotient of this value and x
+ */
def /(x: Double): Double = sys.error("stub")
+ /**
+ * @return the remainder of the division of this value by x
+ */
def %(x: Byte): Double = sys.error("stub")
+ /**
+ * @return the remainder of the division of this value by x
+ */
def %(x: Short): Double = sys.error("stub")
+ /**
+ * @return the remainder of the division of this value by x
+ */
def %(x: Char): Double = sys.error("stub")
+ /**
+ * @return the remainder of the division of this value by x
+ */
def %(x: Int): Double = sys.error("stub")
+ /**
+ * @return the remainder of the division of this value by x
+ */
def %(x: Long): Double = sys.error("stub")
+ /**
+ * @return the remainder of the division of this value by x
+ */
def %(x: Float): Double = sys.error("stub")
+ /**
+ * @return the remainder of the division of this value by x
+ */
def %(x: Double): Double = sys.error("stub")
def getClass(): Class[Double] = sys.error("stub")