1 package org.simantics.interop.test;
\r
3 import org.simantics.db.ReadGraph;
\r
4 import org.simantics.db.Resource;
\r
5 import org.simantics.db.exception.DatabaseException;
\r
9 * @author Marko Luukkainen <marko.luukkainen@vtt.fi>
\r
12 public interface ObjectComparator {
\r
15 * Compares two resources and returns numeric value of differences. Result value is Integer.MAX_VALUE if objects are not comparable.
\r
20 * @throws DatabaseException
\r
22 public int compare(ReadGraph g, Resource o1, Resource o2) throws DatabaseException;
\r