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