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