com.sun.media.sound
Class ModelInstrumentComparator

java.lang.Object
  extended by com.sun.media.sound.ModelInstrumentComparator
All Implemented Interfaces:
java.util.Comparator<javax.sound.midi.Instrument>

public class ModelInstrumentComparator
extends java.lang.Object
implements java.util.Comparator<javax.sound.midi.Instrument>

Instrument comparator class. Used to order instrument by program, bank, percussion.

Author:
Karl Helgason

Constructor Summary
ModelInstrumentComparator()
           
 
Method Summary
 int compare(javax.sound.midi.Instrument arg0, javax.sound.midi.Instrument arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ModelInstrumentComparator

public ModelInstrumentComparator()
Method Detail

compare

public int compare(javax.sound.midi.Instrument arg0,
                   javax.sound.midi.Instrument arg1)
Specified by:
compare in interface java.util.Comparator<javax.sound.midi.Instrument>