01: package gnu.kawa.xml;
02:
03: import gnu.mapping.Symbol;
04:
05: public class Notation {
06: Symbol qname;
07:
08: public boolean equals(Notation n1, Notation n2) {
09: return n1.qname.equals(n2.qname);
10: }
11:
12: public boolean equals(Object obj) {
13: return obj instanceof Notation && equals(this , (Notation) obj);
14: }
15:
16: public int hashCode() {
17: return qname.hashCode();
18: }
19: }
|