public class FixedListCompare
extends java.lang.Object
implements java.util.Comparator
This class implements the Comparator interface, and provides a sort comparator that can sort things according to a fixed ordering. Items not in the original ordered list will be placed after items in the original list, and in alphabetical toString() order relative to each other.
| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
debug |
private java.util.Vector |
items |
private java.util.Comparator |
secondaryComparator |
| Constructor and Description |
|---|
FixedListCompare(java.util.Vector items,
java.util.Comparator secondaryComparator) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object a,
java.lang.Object b)
Comparator for arlut.csd.Util sort classes.
|
static final boolean debug
private java.util.Vector items
private java.util.Comparator secondaryComparator
public FixedListCompare(java.util.Vector items,
java.util.Comparator secondaryComparator)
items - A list of items whose sort order we will impart on comparisonssecondaryComparator - A Compare object that we will pass objects to
that are both missing from the items list.