Test whether this LineID is equal to another object. Two LineID's are equal when both their fileName and lineNo are equal. @param obj the object to test for equality @return true if equal
(Object obj)
| 88 | * @return {@code true} if equal |
| 89 | */ |
| 90 | @Override |
| 91 | public boolean equals(Object obj) { |
| 92 | if (obj == null) { |
| 93 | return false; |
| 94 | } |
| 95 | if (getClass() != obj.getClass()) { |
| 96 | return false; |
| 97 | } |
| 98 | final LineID other = (LineID) obj; |
| 99 | if ((this.fileName == null) ? (other.fileName != null) : !this.fileName.equals(other.fileName)) { |
| 100 | return false; |
| 101 | } |
| 102 | if (this.lineIdx != other.lineIdx) { |
| 103 | return false; |
| 104 | } |
| 105 | return true; |
| 106 | } |
| 107 | |
| 108 | |
| 109 | /** |
no outgoing calls
no test coverage detected