private AlignmentSorter()
{
- // singleton
+ // private singleton
}
+
+ private static AlignmentSorter getInstance()
+ {
+ Instance j = Instance.getInstance();
+ return (j.alignmentSorter == null
+ ? j.alignmentSorter = new AlignmentSorter()
+ : j.alignmentSorter);
+ }
+
/**
* types of feature ordering: Sort by score : average score - or total score -
* over all features in region Sort by feature label text: (or if null -
public static final String FEATURE_DENSITY = "density";
- public static AlignmentSorter getInstance()
- {
- Instance j = Instance.getInstance();
- return (j.alignmentSorter == null
- ? j.alignmentSorter = new AlignmentSorter()
- : j.alignmentSorter);
- }
-
/*
* todo: refactor searches to follow a basic pattern: (search property, last
* search state, current sort direction)