in scala
class AnyRef

class AnyRef
extends scala.Any

Class AnyRef is the root class of all reference types.


Constructor Summary
def this : java.lang.Object
Def Summary
def this : java.lang.Object
def getClass : java.lang.Class
def hashCode : scala.Int
def equals (scala.Any): scala.Boolean
def clone : java.lang.Object
def toString : java.lang.String
def notify : scala.Unit
def notifyAll : scala.Unit
def wait (scala.Long): scala.Unit
def wait (scala.Longscala.Int): scala.Unit
def wait : scala.Unit
def finalize : scala.Unit
def == (java.lang.Object): scala.Boolean
def != (java.lang.Object): scala.Boolean
def eq (java.lang.Object): scala.Boolean
def ne (java.lang.Object): scala.Boolean
def synchronized [T0]: (T0)T0

To make your programs thread-safe, you must first identify what data will be shared across threads. If you are writing data that may be read later by another thread, or reading data that may have been written by another thread, then that data is shared, and you must synchronize when accessing it.

See also:

def $isInstanceOf [T0]: ()scala.Boolean

The method isInstanceOf is the pendant of the Java operator instanceof.

See also:

def $asInstanceOf [T0]: ()T0