public class MetaDataInheritanceComparator extends InheritanceComparator
Constructor and Description |
---|
MetaDataInheritanceComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object o1,
Object o2) |
protected Class |
toClass(Object elem)
Subclasses can override this method to extract the class to compare
on from the elements of the collection.
|
getBase, setBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected Class toClass(Object elem)
InheritanceComparator
toClass
in class InheritanceComparator
public int compare(Object o1, Object o2)
compare
in interface Comparator
compare
in class InheritanceComparator
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.