org.apache.openjpa.meta
Class InheritanceComparator
java.lang.Object
   org.apache.openjpa.meta.InheritanceComparator
org.apache.openjpa.meta.InheritanceComparator
- All Implemented Interfaces: 
- java.io.Serializable, java.util.Comparator
- Direct Known Subclasses: 
- MetaDataInheritanceComparator
- public class InheritanceComparator 
- extends java.lang.Object- implements java.util.Comparator, java.io.Serializable
Comparator that keeps classes in inheritance order.
- Author:
- Abe White
- See Also:
- Serialized Form
 
| Method Summary | 
|  int | compare(java.lang.Object o1,
        java.lang.Object o2)
 | 
|  java.lang.Class | getBase()
 | 
|  void | setBase(java.lang.Class base)Set the least-derived type possible; defaults to
 null. | 
| protected  java.lang.Class | toClass(java.lang.Object elem)Subclasses can override this method to extract the class to compare
 on from the elements of the collection.
 | 
 
| 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 | 
 
InheritanceComparator
public InheritanceComparator()
setBase
public void setBase(java.lang.Class base)
- Set the least-derived type possible; defaults to null.
 
- 
 
- 
 
getBase
public java.lang.Class getBase()
- 
 
- 
 
toClass
protected java.lang.Class toClass(java.lang.Object elem)
- Subclasses can override this method to extract the class to compare
 on from the elements of the collection.
 
- 
 
- 
 
compare
public int compare(java.lang.Object o1,
                   java.lang.Object o2)
- 
- Specified by:
- comparein interface- java.util.Comparator
 
- 
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.