Package ptolemy.actor.util
Class DFUtilities.NamedObjComparator
- java.lang.Object
-
- ptolemy.actor.util.DFUtilities.NamedObjComparator
-
- All Implemented Interfaces:
java.util.Comparator
- Enclosing class:
- DFUtilities
public static class DFUtilities.NamedObjComparator extends java.lang.Object implements java.util.ComparatorA comparator for named objects.
-
-
Constructor Summary
Constructors Constructor Description NamedObjComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(java.lang.Object object1, java.lang.Object object2)Compare two objects.
-
-
-
Method Detail
-
compare
public int compare(java.lang.Object object1, java.lang.Object object2)Compare two objects. If the objects are not NamedObjs, then an InternalErrorException is thrown.- Specified by:
comparein interfacejava.util.Comparator- Parameters:
object1- The first object to be compared.object2- The second object to be compared.- Returns:
- 0 if the objects are the same.
-
-