1 /***
2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 */
4 package net.sourceforge.pmd.rules;
5
6 public class ImportWrapper {
7 private int line;
8 private String name;
9
10 public ImportWrapper(String name, int line) {
11 this.name = name;
12 this.line = line;
13 }
14
15 public boolean equals(Object other) {
16 ImportWrapper i = (ImportWrapper) other;
17 return i.getName().equals(getName());
18 }
19
20 public int hashCode() {
21 return getName().hashCode();
22 }
23
24 public String getName() {
25 return name;
26 }
27
28 public int getLine() {
29 return line;
30 }
31 }
32
This page was automatically generated by Maven