Package ome.formats

Class 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.
    • 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.
      • 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

      • OMEXMLModelComparator

        public OMEXMLModelComparator()
    • Method Detail

      • compare

        public int compare​(ome.util.LSID x,
                           ome.util.LSID y)
        Specified by:
        compare in interface java.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.