javax.sound.midi

Class MidiDevice.Info

public static class MidiDevice.Info extends Object

A MIDI device descriptor object.
Constructor Summary
protected Info(String name, String vendor, String description, String version)
Create an Info object for a MIDI device
Method Summary
booleanequals(Object obj)
This equals method only returns true if this object is the same as obj.
StringgetDescription()
Get the device description
StringgetName()
Get the device name.
StringgetVendor()
Get the device vendor.
StringgetVersion()
get the device version
inthashCode()
A hash code for this object.
StringtoString()
Simple return the name of the device.

Constructor Detail

Info

protected Info(String name, String vendor, String description, String version)
Create an Info object for a MIDI device

Parameters: name the device name vendor the vendor name description the device description version the device version string

Method Detail

equals

public final boolean equals(Object obj)
This equals method only returns true if this object is the same as obj.

Parameters: obj the object we're comparing to

Returns: true if this is the same object

See Also: equals

getDescription

public final String getDescription()
Get the device description

Returns: the device description

getName

public final String getName()
Get the device name.

Returns: the device name

getVendor

public final String getVendor()
Get the device vendor.

Returns: the device vendor

getVersion

public final String getVersion()
get the device version

Returns: the device version

hashCode

public final int hashCode()
A hash code for this object.

Returns: the hash code for this object

See Also: hashCode

toString

public final String toString()
Simple return the name of the device.

Returns: the device name

See Also: toString