[jdom-interest] Text class (Modified)

Jason Hunter jhunter at collab.net
Sun May 27 16:22:12 PDT 2001


Brett McLaughlin wrote:
> 
>     public boolean equals(Object ob) {
>         if (ob instanceof Text) {
>             if (((Text)ob).value.equals(value)) {
>                 return true;
>             }
>         }
>         return false;
>     }
> }

That needs to be == and final, the same as for other nodes.

-jh-



More information about the jdom-interest mailing list