javax.sound.midi
Class MidiDevice.Info

java.lang.Object
  extended by javax.sound.midi.MidiDevice.Info
Enclosing interface:
MidiDevice

public static class MidiDevice.Info
extends Object

A MIDI device descriptor object.


Constructor Summary
protected MidiDevice.Info(String name, String vendor, String description, String version)
          Create an Info object for a MIDI device
 
Method Summary
 boolean equals(Object obj)
          This equals method only returns true if this object is the same as obj.
 String getDescription()
          Get the device description
 String getName()
          Get the device name.
 String getVendor()
          Get the device vendor.
 String getVersion()
          get the device version
 int hashCode()
          A hash code for this object.
 String toString()
          Simple return the name of the device.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MidiDevice.Info

protected MidiDevice.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.

Overrides:
equals in class Object
Parameters:
obj - the object we're comparing to
Returns:
true if this is the same object
See Also:
Object.equals(java.lang.Object)

hashCode

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

Overrides:
hashCode in class Object
Returns:
the hash code for this object
See Also:
Object.hashCode()

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

getDescription

public final String getDescription()
Get the device description

Returns:
the device description

getVersion

public final String getVersion()
get the device version

Returns:
the device version

toString

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

Overrides:
toString in class Object
Returns:
the device name
See Also:
Object.toString()