Class DefaultMappingComparator

java.lang.Object
org.incenp.obofoundry.sssom.DefaultMappingComparator
All Implemented Interfaces:
Comparator<Mapping>

public class DefaultMappingComparator extends Object implements Comparator<Mapping>
Comparator for mapping objects. This class allows to sort mappings in the order recommended by the SSSOM specification.

The recommended order is obtained by sorting mappings on each slot, in the order they are listed in the specification. That is, mappings are compared first on their subject IDs, then on their subject labels, then on their subject categories, then on their predicate IDs, etc.

  • Constructor Details

    • DefaultMappingComparator

      public DefaultMappingComparator()
  • Method Details