public static class MidiDevice.Info extends Object
MidiDevice.Info object contains assorted data about a
MidiDevice, including its name, the company who created it, and descriptive text.
MidiDevice.getDeviceInfo()
| Modifier | Constructor and Description |
|---|---|
protected |
Info(String
Constructs a device info object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
Reports whether two objects are equal.
|
String |
getDescription()
Obtains the description of the device.
|
String |
getName()
Obtains the name of the device.
|
String |
getVendor()
Obtains the name of the company who supplies the device.
|
String |
getVersion()
Obtains the version of the device.
|
int |
hashCode()
Finalizes the hashcode method.
|
String |
toString()
Provides a string representation of the device information.
|
protected Info(Stringname, String vendor, String description, String version)
name - the name of the device
vendor - the name of the company who provides the device
description - a description of the device
version - version information for the device
public final boolean equals(Objectobj)
true if the objects are identical.
equals in class
Object
obj - the reference object with which to compare this object
true if this object is the same as the
obj argument;
false otherwise
Object.hashCode() ,
HashMap
public final int hashCode()
hashCode in class
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
public final StringgetName()
public final StringgetVendor()
public final StringgetDescription()
public final StringgetVersion()