Package com._1c.g5.v8.dt.md.sort
Class MdObjectByNameComparator
- java.lang.Object
-
- com._1c.g5.v8.dt.md.sort.MdObjectByNameComparator
-
- All Implemented Interfaces:
Comparator<org.eclipse.emf.ecore.EObject>
public class MdObjectByNameComparator extends Object implements Comparator<org.eclipse.emf.ecore.EObject>
The comparator forMdObject
to compare them by name.
-
-
Constructor Summary
Constructors Constructor Description MdObjectByNameComparator(boolean ascendingSort, boolean naturalSortOrder)
Instantiates a new metadata object comparator by name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.eclipse.emf.ecore.EObject first, org.eclipse.emf.ecore.EObject second)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
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
otherwisenaturalSortOrder
-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 interfaceComparator<org.eclipse.emf.ecore.EObject>
-
-