ClassAnyRef is the root class of allreference types. All types except the value types descend from this class.
Tests whether the argument (that) is a reference to the receiver object (this).
Tests whether the argument (that) is a reference to the receiver object (this).
Theeq method implements anequivalence relation on non-null instances ofAnyRef, and has three additional properties:
It is consistent: for any non-null instancesx andy of typeAnyRef, multiple invocations ofx.eq(y) consistently returnstrue or consistently returnsfalse.
For any non-null instancex of typeAnyRef,x.eq(null) andnull.eq(x) returnsfalse.
null.eq(null) returnstrue.
When overriding theequals orhashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).
the object to compare against this object for reference equality.
true if the argument is a reference to the receiver object;false otherwise.
Equivalent to!(this eq that).
Equivalent to!(this eq that).
the object to compare against this object for reference equality.
true if the argument is not a reference to the receiver object;false otherwise.
Wakes up a single thread that is waiting on the receiver object's monitor.
Wakes up a single thread that is waiting on the receiver object's monitor.
not specified by SLS as a member of AnyRef
Wakes up all threads that are waiting on the receiver object's monitor.
Wakes up all threads that are waiting on the receiver object's monitor.
not specified by SLS as a member of AnyRef
Executes the code inbody with an exclusive lock onthis.
Executes the code inbody with an exclusive lock onthis.
the code to execute
the result ofbody
not specified by SLS as a member of AnyRef
the maximum time to wait in milliseconds.
not specified by SLS as a member of AnyRef
additional time, in nanoseconds range 0-999999.
the maximum time to wait in milliseconds.
not specified by SLS as a member of AnyRef