Class MdObjectByNameComparator

  • All Implemented Interfaces:
    Comparator<org.eclipse.emf.ecore.EObject>

    public class MdObjectByNameComparator
    extends Object
    implements Comparator<org.eclipse.emf.ecore.EObject>
    The comparator for MdObject to compare them by name.
    • Constructor Detail

      • MdObjectByNameComparator

        public MdObjectByNameComparator​(boolean ascendingSort,
                                        boolean naturalSortOrder)
        Instantiates a new metadata object comparator by name.
        Parameters:
        ascendingSort - true if the ascending sort will be used, false otherwise
        naturalSortOrder - true if the natural sort order will be used, false if the sort order as in the designer will be used
    • Method Detail

      • compare

        public int compare​(org.eclipse.emf.ecore.EObject first,
                           org.eclipse.emf.ecore.EObject second)
        Specified by:
        compare in interface Comparator<org.eclipse.emf.ecore.EObject>