Package org.apache.tika.utils
Class CompareUtils
- java.lang.Object
-
- org.apache.tika.utils.CompareUtils
-
public class CompareUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description CompareUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
compareClassName(Object o1, Object o2)
Compare two classes by class names.
-
-
-
Method Detail
-
compareClassName
public static int compareClassName(Object o1, Object o2)
Compare two classes by class names. If both classes are Tika's or both are not Tika's class, compare by name String. Otherwise one of these two class is Tika's class. Then the non-Tika's class comes before Tika's class.- Parameters:
o1
- the object 1 to be comparedo2
- the object 2 to be compared- Returns:
- a negative integer, zero, or a positive integer
-
-