Compares an object with another
Compares an object with another and returns TRUE
if they are equal.
The equal property must be
1) reflexive, i.e. equals(o1,o1)
should be TRUE
.
5) consistent, i.e. equals(o1,o2)
should return the same
result on multiple invocations as long as noting has changed.
6) equals(o1,NULL)
should return FALSE
.
By default, the method returns TRUE
if and only if the two
references compared refer to the same BasicObject
, i.e.
( !is.null(obj) && (hashCode(this) == hashCode(obj)) )
.
## S3 method for class 'BasicObject' equals(this, other, ...)
other |
The other object this object should be compared to. |
... |
Not used. |
Henrik Bengtsson
For more information see BasicObject
.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.