[jdom-interest] PartialList.remove(int)
Jason Hunter
jhunter at collab.net
Thu May 24 11:09:22 PDT 2001
> Tom Fennelly wrote:
>
> Therefore if you've
> got a list with the same string in it more than once (i.e. different
> String object instances but containing the same string - not multiple
> list entries to the same object reference) you can run into a problem
> with the integrity of your PartialList/backingList relationship.
Lucky we're going to adopt a Text class internally, eh? Brett, what's
your status on that?
> Of course in theory it's not going to happen with just Strings - any
> Object who's equals() method performs more than a simple reference
> comparison. I've only seen it with String objects.
Yes, which is why JDOM nodes use == for their .equals() check and
declare the method final.
-jh-
More information about the jdom-interest
mailing list