previous
|
start
|
next
Requirements for
equals
Method
reflexive
:
x.equals(x)
symmetric
:
x.equals(y)
if and only if
y.equals(x)
transitive
: if
x.equals(y)
and
y.equals(z)
, then
x.equals(z)
x.equals(null)
must return
false
previous
|
start
|
next