JAL-3253-applet JAL-3397 JAL-3383 fast IntervalStore for JavaScript
[jalview.git] / src / jalview / datamodel / features / SequenceFeatures.java
index be9c4f2..cb2b8cc 100644 (file)
@@ -59,18 +59,21 @@ 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_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
-  // LINKED_LIST for JalviewJS and NCLIST for Java
+  // true || //
   Platform.isJS() ? //
           INTERVAL_STORE_LINKED_LIST //
           : INTERVAL_STORE_NCLIST//
@@ -132,7 +135,7 @@ 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_LINKED_LIST:
       return new FeatureStoreJS();