Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java equals()

Name: Anonymous 2009-05-18 5:38

I want to put an equals() method in all of mine immutable (final) classes.
Should I use the instanceof or the getClass() approach?

thanks!

Name: Anonymous 2009-05-18 17:29

>>14-15
Neither should extend the other. Haven’t you read your Behavioral Subtyping Using Invariants and Constraints today?

I think that's what >>5-san was saying.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List