Why do methods contains(), indexOf() in a Java Collection use o.equals(e) and not e.equals(o)?

Posted by Fernando on Stack Overflow See other posts from Stack Overflow or by Fernando
Published on 2010-05-27T15:38:54Z Indexed on 2010/05/27 15:51 UTC
Read the original article Hit count: 184

Filed under:
|
|

anyone know the reasons of that??

© Stack Overflow or respective owner

Related posts about java

Related posts about collections