1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.apache.maven.plugins.javadoc.options;
25
26
27
28
29
30
31 @SuppressWarnings( "all" )
32 public class OfflineLink
33 implements java.io.Serializable
34 {
35
36
37
38
39
40
41
42
43 private String url;
44
45
46
47
48 private String location;
49
50
51
52
53
54
55
56
57
58
59
60
61 public boolean equals( Object other )
62 {
63 if ( this == other )
64 {
65 return true;
66 }
67
68 if ( !( other instanceof OfflineLink ) )
69 {
70 return false;
71 }
72
73 OfflineLink that = (OfflineLink) other;
74 boolean result = true;
75
76 result = result && ( getUrl() == null ? that.getUrl() == null : getUrl().equals( that.getUrl() ) );
77 result = result && ( getLocation() == null ? that.getLocation() == null : getLocation().equals( that.getLocation() ) );
78
79 return result;
80 }
81
82
83
84
85
86
87 public String getLocation()
88 {
89 return this.location;
90 }
91
92
93
94
95
96
97 public String getUrl()
98 {
99 return this.url;
100 }
101
102
103
104
105
106
107 public int hashCode()
108 {
109 int result = 17;
110
111 result = 37 * result + ( url != null ? url.hashCode() : 0 );
112 result = 37 * result + ( location != null ? location.hashCode() : 0 );
113
114 return result;
115 }
116
117
118
119
120
121
122 public void setLocation( String location )
123 {
124 this.location = location;
125 }
126
127
128
129
130
131
132 public void setUrl( String url )
133 {
134 this.url = url;
135 }
136
137
138
139
140
141
142 public java.lang.String toString()
143 {
144 StringBuilder buf = new StringBuilder( 128 );
145
146 buf.append( "url = '" );
147 buf.append( getUrl() );
148 buf.append( "'" );
149 buf.append( "\n" );
150 buf.append( "location = '" );
151 buf.append( getLocation() );
152 buf.append( "'" );
153
154 return buf.toString();
155 }
156
157 }