Jon Stevens <[EMAIL PROTECTED]> writes:
> on 2/2/01 11:45 AM, "Daniel Rall" <[EMAIL PROTECTED]> wrote:
>
> > -public class BaseObject implements Serializable
> > +public abstract class BaseObject implements Serializable
>
> You now have an equals() method in it...shouldn't it also implement the
> Comparable interface as well?
I completely forgot to mention those (and I just checked them in).
The equals(Object) method is inheritted from Object. BaseObject now
override it by checking its primary key (one of the only attributes it
knows about...perhaps isNew() should be checked as well). The
compareTo() method implements the Comparable interface (didn't
implement that one in BaseObject).
--
Daniel Rall <[EMAIL PROTECTED]>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]