01: package org.acm.seguin.pmd.rules;
02:
03: public class ImportWrapper {
04: private int line;
05: private String name;
06:
07: public ImportWrapper(String name, int line) {
08: this .name = name;
09: this .line = line;
10: }
11:
12: public boolean equals(Object other) {
13: ImportWrapper i = (ImportWrapper) other;
14: return i.getName().equals(getName());
15: }
16:
17: public int hashCode() {
18: return getName().hashCode();
19: }
20:
21: public String getName() {
22: return name;
23: }
24:
25: public int getLine() {
26: return line;
27: }
28: }
|