oracle.javatools.db.diff
Class GenericComparator
java.lang.Object
  
oracle.javatools.db.diff.GenericComparator
- All Implemented Interfaces: 
 - java.util.Comparator
 
public class GenericComparator
- extends java.lang.Object
- implements java.util.Comparator
  
Generic comparator for use comparing lists of objects. If the object is a 
 bean the name and type/class is used. If the object is convertible to a 
 string the string representation is compared.
 
| 
Method Summary | 
 int | 
compare(java.lang.Object o1,
        java.lang.Object o2)
 
            | 
 boolean | 
equals(java.lang.Object obj)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
GenericComparator
public GenericComparator()
compare
public int compare(java.lang.Object o1,
                   java.lang.Object o2)
- Specified by:
 compare in interface java.util.Comparator
 
 
equals
public boolean equals(java.lang.Object obj)
- Specified by:
 equals in interface java.util.Comparator- Overrides:
 equals in class java.lang.Object
 
 
Copyright © 1997, 2009, Oracle. All rights reserved.