Package org.apache.tika.utils
Class CompareUtils
java.lang.Object
org.apache.tika.utils.CompareUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareClassName
(Object o1, Object o2) Compare two classes by class names.
-
Constructor Details
-
CompareUtils
public CompareUtils()
-
-
Method Details
-
compareClassName
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
-