@deprecated("Explicitly override hashCode, equals and toString instead.", "2.13.0")
trait Proxy
This class implements a simple proxy that forwards all calls to
the public, non-final methods defined in class Any
to another
object self. Those methods are:
def hashCode(): Int
def equals(other: Any): Boolean
def toString(): String
Note: forwarding methods in this way will most likely create an asymmetric equals method, which is not generally recommended.
- Companion:
- object
- Deprecated
- Source:
- Proxy.scala
class Any
trait OrderedProxy[T]
class RichBoolean
trait ScalaNumberProxy[T]
trait FractionalProxy[T]
class RichDouble
class RichFloat
class RichInt
trait ScalaWholeNumberProxy[T]
trait IntegralProxy[T]
class RichChar
class RichLong
class RichByte
class RichShort
trait RangedProxy[T]
trait ReferenceWrapper[T]
class PhantomReference[T]
class SoftReference[T]
class WeakReference[T]