Package ome.formats
Class OMEXMLModelComparator
- java.lang.Object
-
- ome.formats.OMEXMLModelComparator
-
- All Implemented Interfaces:
java.util.Comparator<ome.util.LSID>
public class OMEXMLModelComparator extends java.lang.Object implements java.util.Comparator<ome.util.LSID>
This comparator takes into account the OME-XML data model hierarchy and uses that to define equivalence.
-
-
Constructor Summary
Constructors Constructor Description OMEXMLModelComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ome.util.LSID x, ome.util.LSID y)
int
getValue(java.lang.Class<? extends IObject> klass, int indexes)
Assigns a value to a particular class based on its location in the OME-XML hierarchy.
-
-
-
Method Detail
-
compare
public int compare(ome.util.LSID x, ome.util.LSID y)
- Specified by:
compare
in interfacejava.util.Comparator<ome.util.LSID>
-
getValue
public int getValue(java.lang.Class<? extends IObject> klass, int indexes)
Assigns a value to a particular class based on its location in the OME-XML hierarchy.- Parameters:
klass
- Class to assign a value to.indexes
- Number of class indexes that were present in its LSID.- Returns:
- The value.
-
-