blob: cbd16ce0613b67c6cdd09781cb13ff9991ae142d (
plain) (
tree)
|
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
package scala
import Predef._
/** 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()
}
|