JAL-3253-applet headless branch - just experimenting.
[jalview.git] / src / jalview / datamodel / features / SequenceFeatures.java
index 5c6b4a7..cb2b8cc 100644 (file)
@@ -59,20 +59,23 @@ public class SequenceFeatures implements SequenceFeaturesI
   private final static int INTERVAL_STORE_NCLIST = 0;
 
   /**
-   * linked-list deferred-sort IntervalStore
+   * linked-list deferred-sort IntervalStore - experimental only; unused
    */
-  private final static int INTERVAL_STORE_NOCLKIST = 1;
+  private final static int INTERVAL_STORE_LINKED_LIST_NO_PRESORT = 1;
 
   /**
-   * no-IntervalStore option for JavaScript
+   * linked-list IntervalStore option for JavaScript
    */
-  private final static int INTERVAL_STORE_NONE_JS = -1;
+  private final static int INTERVAL_STORE_LINKED_LIST = -1;
 
+  /**
+   * mode for Java or JavaScript; can be set differently for testing, but
+   * default is LINKED_LIST for JalviewJS and NCLIST for Java
+   */
   private final int INTERVAL_STORE_MODE = (
-  // can be set differently for testing, but default is
-  // NONE_JS for JalviewJS and NCLIST for Java
+  // true || //
   Platform.isJS() ? //
-          INTERVAL_STORE_NONE_JS //
+          INTERVAL_STORE_LINKED_LIST //
           : INTERVAL_STORE_NCLIST//
   );
 
@@ -132,9 +135,9 @@ public class SequenceFeatures implements SequenceFeaturesI
     default:
     case INTERVAL_STORE_NCLIST:
       return new FeatureStoreImpl(true);
-    case INTERVAL_STORE_NOCLKIST:
+    case INTERVAL_STORE_LINKED_LIST_NO_PRESORT:
       return new FeatureStoreImpl(false);
-    case INTERVAL_STORE_NONE_JS:
+    case INTERVAL_STORE_LINKED_LIST:
       return new FeatureStoreJS();
     }
   }