equal
deleted
inserted
replaced
132 * {@code MidiSystem}. |
132 * {@code MidiSystem}. |
133 * |
133 * |
134 * @see #open |
134 * @see #open |
135 * @see #isOpen |
135 * @see #isOpen |
136 */ |
136 */ |
|
137 @Override |
137 void close(); |
138 void close(); |
138 |
139 |
139 /** |
140 /** |
140 * Reports whether the device is open. |
141 * Reports whether the device is open. |
141 * |
142 * |
250 class Info { |
251 class Info { |
251 |
252 |
252 /** |
253 /** |
253 * The device's name. |
254 * The device's name. |
254 */ |
255 */ |
255 private String name; |
256 private final String name; |
256 |
257 |
257 /** |
258 /** |
258 * The name of the company who provides the device. |
259 * The name of the company who provides the device. |
259 */ |
260 */ |
260 private String vendor; |
261 private final String vendor; |
261 |
262 |
262 /** |
263 /** |
263 * A description of the device. |
264 * A description of the device. |
264 */ |
265 */ |
265 private String description; |
266 private final String description; |
266 |
267 |
267 /** |
268 /** |
268 * Device version. |
269 * Device version. |
269 */ |
270 */ |
270 private String version; |
271 private final String version; |
271 |
272 |
272 /** |
273 /** |
273 * Constructs a device info object. |
274 * Constructs a device info object. |
274 * |
275 * |
275 * @param name the name of the device |
276 * @param name the name of the device |
292 * |
293 * |
293 * @param obj the reference object with which to compare this object |
294 * @param obj the reference object with which to compare this object |
294 * @return {@code true} if this object is the same as the {@code obj} |
295 * @return {@code true} if this object is the same as the {@code obj} |
295 * argument; {@code false} otherwise |
296 * argument; {@code false} otherwise |
296 */ |
297 */ |
|
298 @Override |
297 public final boolean equals(Object obj) { |
299 public final boolean equals(Object obj) { |
298 return super.equals(obj); |
300 return super.equals(obj); |
299 } |
301 } |
300 |
302 |
301 /** |
303 /** |
302 * Finalizes the hashcode method. |
304 * Finalizes the hashcode method. |
303 */ |
305 */ |
|
306 @Override |
304 public final int hashCode() { |
307 public final int hashCode() { |
305 return super.hashCode(); |
308 return super.hashCode(); |
306 } |
309 } |
307 |
310 |
308 /** |
311 /** |
344 /** |
347 /** |
345 * Provides a string representation of the device information. |
348 * Provides a string representation of the device information. |
346 * |
349 * |
347 * @return a description of the info object |
350 * @return a description of the info object |
348 */ |
351 */ |
|
352 @Override |
349 public final String toString() { |
353 public final String toString() { |
350 return name; |
354 return name; |
351 } |
355 } |
352 } // class Info |
356 } // class Info |
353 } |
357 } |