summaryrefslogtreecommitdiff
path: root/examples/scala-js/library/src/main/scala/scala/scalajs/runtime/BooleanReflectiveCall.scala
diff options
context:
space:
mode:
authorHaoyi Li <haoyi@haoyi-mbp.corp.dropbox.com>2014-11-26 00:50:50 -0800
committerHaoyi Li <haoyi@haoyi-mbp.corp.dropbox.com>2014-11-26 00:50:50 -0800
commit88595a41e3ec13c1a516e847fe3d0b279facf3fc (patch)
tree4f03b902de7b81fa2e32792e84b680038345e761 /examples/scala-js/library/src/main/scala/scala/scalajs/runtime/BooleanReflectiveCall.scala
parent82773a11c99d260e97ca63356bfb7b417599b1e9 (diff)
downloadhands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.tar.gz
hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.tar.bz2
hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.zip
killed
Diffstat (limited to 'examples/scala-js/library/src/main/scala/scala/scalajs/runtime/BooleanReflectiveCall.scala')
-rw-r--r--examples/scala-js/library/src/main/scala/scala/scalajs/runtime/BooleanReflectiveCall.scala31
1 files changed, 0 insertions, 31 deletions
diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/runtime/BooleanReflectiveCall.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/runtime/BooleanReflectiveCall.scala
deleted file mode 100644
index 0cd562a..0000000
--- a/examples/scala-js/library/src/main/scala/scala/scalajs/runtime/BooleanReflectiveCall.scala
+++ /dev/null
@@ -1,31 +0,0 @@
-package scala.scalajs.runtime
-
-import java.lang.{Boolean => JBoolean}
-
-/** Explicit box for boolean values when doing a reflective call.
- * This class and its methods are only here to properly support reflective
- * calls on booleans.
- */
-class BooleanReflectiveCall(value: Boolean) {
-
- // Methods of java.lang.Boolean
-
- def booleanValue(): Boolean = value
-
- def compareTo(that: JBoolean): Int =
- new JBoolean(value).compareTo(that)
- def compareTo(that: AnyRef): Int =
- new JBoolean(value).compareTo(that.asInstanceOf[JBoolean])
-
- // Methods of scala.Boolean
-
- def unary_! : Boolean = !value
- def ==(x: Boolean): Boolean = value == x
- def !=(x: Boolean): Boolean = value != x
- def ||(x: Boolean): Boolean = value || x
- def &&(x: Boolean): Boolean = value && x
- def |(x: Boolean): Boolean = value | x
- def &(x: Boolean): Boolean = value & x
- def ^(x: Boolean): Boolean = value ^ x
-
-}