public class TopmostRankedSkillComparator
implements java.util.Comparator<java.util.Map<? extends ID,Skill>>
A comparator imposing an ordering on collections of Skill objects by comparing the highest ranked
skill available in each set with a SkillComparator. In case of equality the second highest ranked
skills are compared and so on and so on. In case of total equality (e.g. if there is only one
skill oject in both maps and the skilltype and value is the same) the sub-comparator is used for
comparison. Note: Skilltype rankings can be defined in the preferences and are available through
Note: this comparator imposes orderings that are inconsistent with equals.
In order to overcome the inconsistency with equals this comparator allows the introduction of a
sub-comparator which is applied in cases of equality.