1
2
3
4
5
6 package org.apache.maven.plugin.plugin;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class Requirements
15 implements java.io.Serializable
16 {
17
18
19
20
21
22
23
24
25 private String maven;
26
27
28
29
30 private String jdk;
31
32
33
34
35 private String memory;
36
37
38
39
40 private String diskSpace;
41
42
43
44
45 private java.util.Properties others;
46
47
48
49
50
51
52
53
54
55
56
57
58 public void addOther( String key, String value )
59 {
60 getOthers().put( key, value );
61 }
62
63
64
65
66
67
68
69 public boolean equals( Object other )
70 {
71 if ( this == other )
72 {
73 return true;
74 }
75
76 if ( !( other instanceof Requirements ) )
77 {
78 return false;
79 }
80
81 Requirements that = (Requirements) other;
82 boolean result = true;
83
84 result = result && ( getMaven() == null ? that.getMaven() == null : getMaven().equals( that.getMaven() ) );
85 result = result && ( getJdk() == null ? that.getJdk() == null : getJdk().equals( that.getJdk() ) );
86
87 return result;
88 }
89
90
91
92
93
94
95 public String getDiskSpace()
96 {
97 return this.diskSpace;
98 }
99
100
101
102
103
104
105 public String getJdk()
106 {
107 return this.jdk;
108 }
109
110
111
112
113
114
115 public String getMaven()
116 {
117 return this.maven;
118 }
119
120
121
122
123
124
125 public String getMemory()
126 {
127 return this.memory;
128 }
129
130
131
132
133
134
135 public java.util.Properties getOthers()
136 {
137 if ( this.others == null )
138 {
139 this.others = new java.util.Properties();
140 }
141
142 return this.others;
143 }
144
145
146
147
148
149
150 public int hashCode()
151 {
152 int result = 17;
153
154 result = 37 * result + ( maven != null ? maven.hashCode() : 0 );
155 result = 37 * result + ( jdk != null ? jdk.hashCode() : 0 );
156
157 return result;
158 }
159
160
161
162
163
164
165 public void setDiskSpace( String diskSpace )
166 {
167 this.diskSpace = diskSpace;
168 }
169
170
171
172
173
174
175 public void setJdk( String jdk )
176 {
177 this.jdk = jdk;
178 }
179
180
181
182
183
184
185 public void setMaven( String maven )
186 {
187 this.maven = maven;
188 }
189
190
191
192
193
194
195 public void setMemory( String memory )
196 {
197 this.memory = memory;
198 }
199
200
201
202
203
204
205 public void setOthers( java.util.Properties others )
206 {
207 this.others = others;
208 }
209
210
211
212
213
214
215 public java.lang.String toString()
216 {
217 StringBuilder buf = new StringBuilder( 128 );
218
219 buf.append( "maven = '" );
220 buf.append( getMaven() );
221 buf.append( "'" );
222 buf.append( "\n" );
223 buf.append( "jdk = '" );
224 buf.append( getJdk() );
225 buf.append( "'" );
226
227 return buf.toString();
228 }
229
230 }