Package adams.data.audioannotations
Class AudioAnnotationComparator
- java.lang.Object
-
- adams.data.container.DataPointComparator<AudioAnnotation>
-
- adams.data.audioannotations.AudioAnnotationComparator
-
- All Implemented Interfaces:
Serializable,Comparator<AudioAnnotation>
public class AudioAnnotationComparator extends adams.data.container.DataPointComparator<AudioAnnotation>
Comparator for annotation objects.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AudioAnnotationComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(AudioAnnotation o1, AudioAnnotation o2)Compares its two arguments for order.-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(AudioAnnotation o1, AudioAnnotation o2)
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.- Specified by:
comparein interfaceComparator<AudioAnnotation>- Specified by:
comparein classadams.data.container.DataPointComparator<AudioAnnotation>- Parameters:
o1- the first objecto2- the second object- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
-
-