javax.sound.midi
Class MidiDevice.Info

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.sound.midi.MidiDevice.Info
Enclosing interface:
MidiDevice sample code for javax.sound.midi.MidiDevice definition code for javax.sound.midi.MidiDevice

public static class MidiDevice.Info
extends Object sample code for java.lang.Object definition code for java.lang.Object

A MidiDevice.Info object contains assorted data about a MidiDevice sample code for javax.sound.midi.MidiDevice definition code for javax.sound.midi.MidiDevice , including its name, the company who created it, and descriptive text.

See Also:
MidiDevice.getDeviceInfo() sample code for javax.sound.midi.MidiDevice.getDeviceInfo() definition code for javax.sound.midi.MidiDevice.getDeviceInfo()

Constructor Summary
protected MidiDevice.Info sample code for javax.sound.midi.MidiDevice.Info.MidiDevice.Info(java.lang.String, java.lang.String, java.lang.String, java.lang.String) definition code for javax.sound.midi.MidiDevice.Info.MidiDevice.Info(java.lang.String, java.lang.String, java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  vendor, String sample code for java.lang.String definition code for java.lang.String  description, String sample code for java.lang.String definition code for java.lang.String  version)
          Constructs a device info object.
 
Method Summary
 boolean equals sample code for javax.sound.midi.MidiDevice.Info.equals(java.lang.Object) definition code for javax.sound.midi.MidiDevice.Info.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Reports whether two objects are equal.
 String sample code for java.lang.String definition code for java.lang.String getDescription sample code for javax.sound.midi.MidiDevice.Info.getDescription() definition code for javax.sound.midi.MidiDevice.Info.getDescription() ()
          Obtains the description of the device.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.sound.midi.MidiDevice.Info.getName() definition code for javax.sound.midi.MidiDevice.Info.getName() ()
          Obtains the name of the device.
 String sample code for java.lang.String definition code for java.lang.String getVendor sample code for javax.sound.midi.MidiDevice.Info.getVendor() definition code for javax.sound.midi.MidiDevice.Info.getVendor() ()
          Obtains the name of the company who supplies the device.
 String sample code for java.lang.String definition code for java.lang.String getVersion sample code for javax.sound.midi.MidiDevice.Info.getVersion() definition code for javax.sound.midi.MidiDevice.Info.getVersion() ()
          Obtains the version of the device.
 int hashCode sample code for javax.sound.midi.MidiDevice.Info.hashCode() definition code for javax.sound.midi.MidiDevice.Info.hashCode() ()
          Finalizes the hashcode method.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.sound.midi.MidiDevice.Info.toString() definition code for javax.sound.midi.MidiDevice.Info.toString() ()
          Provides a string representation of the device information.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

MidiDevice.Info sample code for javax.sound.midi.MidiDevice.Info(java.lang.String, java.lang.String, java.lang.String, java.lang.String) definition code for javax.sound.midi.MidiDevice.Info(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

protected MidiDevice.Info(String sample code for java.lang.String definition code for java.lang.String  name,
                          String sample code for java.lang.String definition code for java.lang.String  vendor,
                          String sample code for java.lang.String definition code for java.lang.String  description,
                          String sample code for java.lang.String definition code for java.lang.String  version)
Constructs a device info object.

Parameters:
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
Method Detail

equals sample code for javax.sound.midi.MidiDevice.Info.equals(java.lang.Object) definition code for javax.sound.midi.MidiDevice.Info.equals(java.lang.Object)

public final boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Reports whether two objects are equal. Returns true if the objects are identical.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the reference object with which to compare this object
Returns:
true if this object is the same as the obj argument; false otherwise
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.sound.midi.MidiDevice.Info.hashCode() definition code for javax.sound.midi.MidiDevice.Info.hashCode()

public final int hashCode()
Finalizes the hashcode method.

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

getName sample code for javax.sound.midi.MidiDevice.Info.getName() definition code for javax.sound.midi.MidiDevice.Info.getName()

public final String sample code for java.lang.String definition code for java.lang.String  getName()
Obtains the name of the device.

Returns:
a string containing the device's name

getVendor sample code for javax.sound.midi.MidiDevice.Info.getVendor() definition code for javax.sound.midi.MidiDevice.Info.getVendor()

public final String sample code for java.lang.String definition code for java.lang.String  getVendor()
Obtains the name of the company who supplies the device.

Returns:
device the vendor's name

getDescription sample code for javax.sound.midi.MidiDevice.Info.getDescription() definition code for javax.sound.midi.MidiDevice.Info.getDescription()

public final String sample code for java.lang.String definition code for java.lang.String  getDescription()
Obtains the description of the device.

Returns:
a description of the device

getVersion sample code for javax.sound.midi.MidiDevice.Info.getVersion() definition code for javax.sound.midi.MidiDevice.Info.getVersion()

public final String sample code for java.lang.String definition code for java.lang.String  getVersion()
Obtains the version of the device.

Returns:
textual version information for the device.

toString sample code for javax.sound.midi.MidiDevice.Info.toString() definition code for javax.sound.midi.MidiDevice.Info.toString()

public final String sample code for java.lang.String definition code for java.lang.String  toString()
Provides a string representation of the device information.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a description of the info object