import java.util.ArrayList;
import java.util.Collection;
+import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
return super.toString();
}
}
+
+ /**
+ * Uses the <code>comparator</code> to find the highest {@link TypeDesignationStatusBase} term and returns that.
+ */
+ public TypeDesignationStatusBase<?> highestTypeStatus(Comparator<TypeDesignationStatusBase<?>> comparator) {
+ TypeDesignationStatusBase<?> highestTypeStatus = null;
+ for(TypeDesignationStatusBase<?> status : keySet()) {
+ if(comparator.compare(status, highestTypeStatus) < 0){
+ highestTypeStatus = status;
+ }
+ }
+ return highestTypeStatus;
+ }
}
\ No newline at end of file