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