summaryrefslogtreecommitdiff
path: root/sources/scala/Proxy.scala
diff options
context:
space:
mode:
authorMatthias Zenger <mzenger@gmail.com>2004-04-29 10:38:17 +0000
committerMatthias Zenger <mzenger@gmail.com>2004-04-29 10:38:17 +0000
commit62ba1d3b91c448ed62f6c2accf9a8b4011ed8d29 (patch)
tree3d63fdb55c1c805650574ca8e92f2508d56ea544 /sources/scala/Proxy.scala
parente329fb0ec7dd1250428424d128369866eed03d51 (diff)
downloadscala-62ba1d3b91c448ed62f6c2accf9a8b4011ed8d29.tar.gz
scala-62ba1d3b91c448ed62f6c2accf9a8b4011ed8d29.tar.bz2
scala-62ba1d3b91c448ed62f6c2accf9a8b4011ed8d29.zip
*** empty log message ***
Diffstat (limited to 'sources/scala/Proxy.scala')
-rw-r--r--sources/scala/Proxy.scala25
1 files changed, 25 insertions, 0 deletions
diff --git a/sources/scala/Proxy.scala b/sources/scala/Proxy.scala
new file mode 100644
index 0000000000..28b28fccd4
--- /dev/null
+++ b/sources/scala/Proxy.scala
@@ -0,0 +1,25 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2002-2003, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+** $Id$
+\* */
+
+package scala;
+
+
+/** This class implements a simple proxy that forwards all calls to
+ * methods of class <code>Any</code> to another object <code>x</code>.
+ * Please note that only those methods can be forwarded that are
+ * overridable and public.
+ *
+ * @author Matthias Zenger
+ * @version 1.0, 26/04/2004
+ */
+class Proxy(x: Any) {
+ override def hashCode(): Int = x.hashCode();
+ override def equals(y: Any): Boolean = x.equals(y);
+ override def toString(): String = x.toString();
+}