package jalview.api;
+import java.util.Comparator;
+
/**
* An interface that describes the settings configurable in the Feature Settings
* dialog.
* @author gmcarstairs
*
*/
-public interface FeatureSettingsI
+public interface FeatureSettingsI extends Comparator<String>
{
// note Java 8 will allow default implementations of these methods in the
// interface, simplifying instantiating classes
* @param feature2
* @return
*/
- int compareTo(String feature1, String feature2);
+ @Override
+ int compare(String feature1, String feature2);
/**
* Answers true if features should be initially sorted so that features with a