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//
);
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();
}
}