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