Class CompareUtils

java.lang.Object
org.apache.tika.utils.CompareUtils

public class CompareUtils extends Object
  • Constructor Details

    • CompareUtils

      public CompareUtils()
  • Method Details

    • 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 compared
      o2 - the object 2 to be compared
      Returns:
      a negative integer, zero, or a positive integer