Package org.jabylon.properties.util
Class EObjectNameComparator<T extends org.eclipse.emf.ecore.EObject>
- java.lang.Object
-
- org.jabylon.properties.util.EObjectNameComparator<T>
-
- All Implemented Interfaces:
Serializable,Comparator<T>
public class EObjectNameComparator<T extends org.eclipse.emf.ecore.EObject> extends Object implements Comparator<T>, Serializable
can collator compare 2 eobjects if they have a "name" attribute- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EObjectNameComparator()EObjectNameComparator(String featureName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(T arg0, T arg1)-
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
-
EObjectNameComparator
public EObjectNameComparator()
-
EObjectNameComparator
public EObjectNameComparator(String featureName)
- Parameters:
featureName- the feature to compare with
-
-
Method Detail
-
compare
public int compare(T arg0, T arg1)
- Specified by:
comparein interfaceComparator<T extends org.eclipse.emf.ecore.EObject>
-
-