scala

# Proxy

#### trait Proxy extends Any

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.

Version

  1.0, 26/04/2004

Linear Supertypes
Any
Known Subclasses
BufferProxy, FractionalProxy, IntegralProxy, IterableProxy, IterableProxyLike, MapProxy, MapProxy, MapProxy, MapProxyLike, OrderedProxy, PhantomReference, PriorityQueueProxy, QueueProxy, RangedProxy, ReferenceWrapper, RichBoolean, RichByte, RichChar, RichDouble, RichFloat, RichInt, RichLong, RichShort, ScalaNumberProxy, ScalaWholeNumberProxy, SeqProxy, SeqProxyLike, SetProxy, SetProxy, SetProxy, SetProxyLike, SoftReference, StackProxy, TraversableProxy, TraversableProxyLike, Typed, WeakReference
Type Hierarchy Learn more about scaladoc diagrams
Ordering

1. Alphabetic
2. By inheritance

Inherited

1. Proxy
2. Any

Implicitly

1. by any2stringadd
2. by StringFormat
3. by Ensuring
4. by ArrowAssoc

1. Hide All
2. Show all

Learn more about member selection
Visibility

1. Public
2. All

### Abstract Value Members

1. #### abstract def getClass(): Class[_]

   Definition Classes
     Any

2. #### abstract def self: Any

### Concrete Value Members

1. #### final def !=(arg0: Any): Boolean

   Definition Classes
     Any

2. #### final def ##(): Int

   Definition Classes
     Any

3. #### def +(other: String): String

   Implicit information
     This member is added by an implicit conversion from Proxy to any2stringadd[Proxy] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd

4. #### def ->[B](y: B): (Proxy, B)

   Implicit information
     This member is added by an implicit conversion from Proxy to ArrowAssoc[Proxy] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()

5. #### final def ==(arg0: Any): Boolean

   Definition Classes
     Any

6. #### final def asInstanceOf[T0]: T0

   Definition Classes
     Any

7. #### def ensuring(cond: (Proxy) ⇒ Boolean, msg: ⇒ Any): Proxy

   Implicit information
     This member is added by an implicit conversion from Proxy to Ensuring[Proxy] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring

8. #### def ensuring(cond: (Proxy) ⇒ Boolean): Proxy

   Implicit information
     This member is added by an implicit conversion from Proxy to Ensuring[Proxy] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring

9. #### def ensuring(cond: Boolean, msg: ⇒ Any): Proxy

   Implicit information
     This member is added by an implicit conversion from Proxy to Ensuring[Proxy] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring

10. #### def ensuring(cond: Boolean): Proxy

    Implicit information
      This member is added by an implicit conversion from Proxy to Ensuring[Proxy] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring

11. #### def equals(that: Any): Boolean

    Definition Classes
      Proxy → Any

12. #### def formatted(fmtstr: String): String

    Returns string formatted according to given `format` string.

    Returns string formatted according to given `format` string. Format strings are as for `String.format` (@see java.lang.String.format).

    Implicit information
      This member is added by an implicit conversion from Proxy to StringFormat[Proxy] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()

13. #### def hashCode(): Int

    Definition Classes
      Proxy → Any

14. #### final def isInstanceOf[T0]: Boolean

    Definition Classes
      Any

15. #### def toString(): String

    Definition Classes
      Proxy → Any

16. #### def →[B](y: B): (Proxy, B)

    Implicit information
      This member is added by an implicit conversion from Proxy to ArrowAssoc[Proxy] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc

### Inherited from Any

### Inherited by implicit conversion any2stringadd from Proxy to any2stringadd[Proxy]

### Inherited by implicit conversion StringFormat from Proxy to StringFormat[Proxy]

### Inherited by implicit conversion Ensuring from Proxy to Ensuring[Proxy]

### Inherited by implicit conversion ArrowAssoc from Proxy to ArrowAssoc[Proxy]

### Ungrouped