Package org.apache.openjpa.meta
Class InheritanceComparator
java.lang.Object
org.apache.openjpa.meta.InheritanceComparator
- All Implemented Interfaces:
Serializable
,Comparator
- Direct Known Subclasses:
MetaDataInheritanceComparator
Comparator that keeps classes in inheritance order.
- Author:
- Abe White
- See Also:
-
Constructor Summary
-
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
InheritanceComparator
public InheritanceComparator()
-
-
Method Details
-
setBase
Set the least-derived type possible; defaults tonull
. -
getBase
-
toClass
Subclasses can override this method to extract the class to compare on from the elements of the collection. -
compare
- Specified by:
compare
in interfaceComparator
-