|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.javatools.db.diff.GenericComparator
public class GenericComparator
Generic comparator for use comparing lists of objects. Compares using the following rules (in order):
For non primitive objects, this Comparator is only designed to compare lists that contains objects all of the same class.
When dealing with numbers, a String representation of a number, and its Number representation will equate, as will different Number implementations. i.e. "1", 1 and 1D are all the same to this Comparator, but all number representations will compare in numerical, not alphabetical order so "10" is greater than "2".
| Constructor Summary | |
|---|---|
GenericComparator() |
|
| 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 |
| Constructor Detail |
|---|
public GenericComparator()
| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatorpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Comparatorequals in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||