< prev index next >
src/java.desktop/share/classes/javax/sound/midi/MidiDevice.java
Print this page
*** 132,141 ****
--- 132,142 ----
* {@code MidiSystem}.
*
* @see #open
* @see #isOpen
*/
+ @Override
void close();
/**
* Reports whether the device is open.
*
*** 250,275 ****
class Info {
/**
* The device's name.
*/
! private String name;
/**
* The name of the company who provides the device.
*/
! private String vendor;
/**
* A description of the device.
*/
! private String description;
/**
* Device version.
*/
! private String version;
/**
* Constructs a device info object.
*
* @param name the name of the device
--- 251,276 ----
class Info {
/**
* The device's name.
*/
! private final String name;
/**
* The name of the company who provides the device.
*/
! private final String vendor;
/**
* A description of the device.
*/
! private final String description;
/**
* Device version.
*/
! private final String version;
/**
* Constructs a device info object.
*
* @param name the name of the device
*** 292,308 ****
--- 293,311 ----
*
* @param obj the reference object with which to compare this object
* @return {@code true} if this object is the same as the {@code obj}
* argument; {@code false} otherwise
*/
+ @Override
public final boolean equals(Object obj) {
return super.equals(obj);
}
/**
* Finalizes the hashcode method.
*/
+ @Override
public final int hashCode() {
return super.hashCode();
}
/**
*** 344,353 ****
--- 347,357 ----
/**
* Provides a string representation of the device information.
*
* @return a description of the info object
*/
+ @Override
public final String toString() {
return name;
}
} // class Info
}
< prev index next >