1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.struts2.sitegraph.entities;
22
23
24 /***
25 */
26 public class Target {
27 private String target;
28 private int type;
29
30 public Target(String target, int type) {
31 this.target = target;
32 this.type = type;
33 }
34
35 public String getTarget() {
36 return target;
37 }
38
39 public int getType() {
40 return type;
41 }
42
43 public boolean equals(Object o) {
44 if (this == o) return true;
45 if (!(o instanceof Target)) return false;
46
47 final Target target1 = (Target) o;
48
49 if (type != target1.type) return false;
50 if (target != null ? !target.equals(target1.target) : target1.target != null) return false;
51
52 return true;
53 }
54
55 public int hashCode() {
56 int result;
57 result = (target != null ? target.hashCode() : 0);
58 result = 29 * result + type;
59 return result;
60 }
61 }