java.lang.Runnable
public class RelationshipTest extends java.lang.Object implements java.lang.Runnable
Three MidiDevice objects are created from the same MidiDevice.Info object. The same object should be returned in each case. This is not true for the synthesizer and sequencer.
A MidiDevice.Info object was created from each of the MidiDevice objects. The hash code should be the same for each of the three cases. This appears to be the case.
Question: If two identical MIDI keyboards are attached at the same time, will they have different hash codes?
Constructor | Description |
---|---|
RelationshipTest() |
Modifier and Type | Method | Description |
---|---|---|
static void |
main(java.lang.String[] args) |
Test driver.
|
void |
run() |
|
protected void |
single(javax.sound.midi.MidiDevice.Info item) |
Carries out test for a single MidiDevice.Info object.
|
public RelationshipTest()
protected void single(javax.sound.midi.MidiDevice.Info item) throws javax.sound.midi.MidiUnavailableException
item
- object to be testedjavax.sound.midi.MidiUnavailableException
public void run()
run
in interface java.lang.Runnable
public static void main(java.lang.String[] args)
args
- not usedCopyright © 2017. All rights reserved.