Interface declaring equals(Object)?

From: Paul Chapman (paul_at_igblan.free-online.co.uk)
Date: 01/31/05


Date: Mon, 31 Jan 2005 13:34:48 -0000

I can't find a standard API interface which just declares equals(Object) and
hashCode(), which are the minimum implementation for any object used as a
key in a map. Have I missed something? Wouldn't this be a useful thing to
have?

I ask because I just made what must be a classic beginner's mistake of
defining equals(SomeClass x) in SomeClass, instead of equals(Object x). :/

Cheers, Paul