1 /*****************************************************************************/
2 /* Software Testing Automation Framework (STAF)                              */
3 /* (C) Copyright IBM Corp. 2002                                              */
4 /*                                                                           */
5 /* This software is licensed under the Eclipse Public License (EPL) V1.0.    */
6 /*****************************************************************************/
7 
8 package com.ibm.staf.service.stax;
9 import java.util.Comparator;
10 
11 public class STAXObjectComparator implements Comparator
12 {
compare(Object o1, Object o2)13     public int compare(Object o1, Object o2)
14     {
15         if (o1.hashCode() < o2.hashCode()) return -1;
16         else if (o1.hashCode() > o2.hashCode()) return 1;
17 
18         return 0;
19     }
20 }
21