diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-19 13:49:03 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-19 13:49:03 +0000 |
commit | ac849228490d5a0e2d3f048d649297d5c59b6ade (patch) | |
tree | 6314f2c06f37e67dec5827c3f94e25cf844a085c /src/library/scala/Proxy.scala | |
parent | d6c0efe5b4b89a0337f1cdcdabf8c607d81f4ae1 (diff) | |
download | scala-ac849228490d5a0e2d3f048d649297d5c59b6ade.tar.gz scala-ac849228490d5a0e2d3f048d649297d5c59b6ade.tar.bz2 scala-ac849228490d5a0e2d3f048d649297d5c59b6ade.zip |
Switching to the new build system and to the ne...
Switching to the new build system and to the new build system. This is a
MAJOR commit, so be careful when updating.
Diffstat (limited to 'src/library/scala/Proxy.scala')
-rw-r--r-- | src/library/scala/Proxy.scala | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/library/scala/Proxy.scala b/src/library/scala/Proxy.scala new file mode 100644 index 0000000000..5bf65c2ed4 --- /dev/null +++ b/src/library/scala/Proxy.scala @@ -0,0 +1,26 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2003, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +** $Id:Proxy.scala 5359 2005-12-16 16:33:49 +0100 (Fri, 16 Dec 2005) dubochet $ +\* */ + +package scala; + + +/** This class implements a simple proxy that forwards all calls to + * methods of class <code>Any</code> to another object <code>self</code>. + * Please note that only those methods can be forwarded that are + * overridable and public. + * + * @author Matthias Zenger + * @version 1.0, 26/04/2004 + */ +trait Proxy { + def self: Any; + override def hashCode(): Int = self.hashCode(); + override def equals(y: Any): Boolean = self.equals(y); + override def toString(): String = self.toString(); +} |