Révision 3531
TXM/trunk/org.txm.core/src/java/org/txm/objects/Match.java (revision 3531) | ||
---|---|---|
72 | 72 |
return ret; |
73 | 73 |
} |
74 | 74 |
|
75 |
public boolean equals(Object o) { |
|
76 |
if (o instanceof Match) { |
|
77 |
Match m = (Match) o; |
|
78 |
return m.getStart() == this.getStart() && m.getEnd() == this.getEnd() && m.getTarget() == this.getTarget(); |
|
79 |
} |
|
80 |
return super.equals(o); |
|
81 |
} |
|
82 |
|
|
83 |
public int hashCode() { |
|
84 |
return Integer.hashCode(this.getStart()) + Integer.hashCode(this.getEnd()) + Integer.hashCode(this.getTarget()); |
|
85 |
} |
|
86 |
|
|
75 | 87 |
public abstract void setEnd(int p); |
76 | 88 |
|
77 | 89 |
public abstract void setStart(int p); |
Formats disponibles : Unified diff