ome.formats
Class OMEXMLModelComparator
java.lang.Object
ome.formats.OMEXMLModelComparator
- All Implemented Interfaces:
- Comparator<ome.util.LSID>
public class OMEXMLModelComparator
- extends Object
- implements Comparator<ome.util.LSID>
This comparator takes into account the OME-XML data model hierarchy
and uses that to define equivalence.
- Author:
- Chris Allan
Method Summary |
int |
compare(ome.util.LSID x,
ome.util.LSID y)
|
int |
getValue(Class<? extends omero.model.IObject> klass,
int indexes)
Assigns a value to a particular class based on its location in the
OME-XML hierarchy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OMEXMLModelComparator
public OMEXMLModelComparator()
compare
public int compare(ome.util.LSID x,
ome.util.LSID y)
- Specified by:
compare
in interface Comparator<ome.util.LSID>
getValue
public int getValue(Class<? extends omero.model.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.indexed
- Number of class indexes that were present in its LSID.
- Returns:
- The value.
OmeroJava Api
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.