Class ComparableUtils

java.lang.Object
icu.easyj.core.util.ComparableUtils

public abstract class ComparableUtils extends Object
比较工具类
Author:
wangliang181230
  • Constructor Details

    • ComparableUtils

      public ComparableUtils()
  • Method Details

    • compare

      public static <T extends Comparable<T>> int compare(T a, T b)
      Compare a and b.
      Type Parameters:
      T - the type of the a and b
      Parameters:
      a - the comparable object a
      b - the comparable object b
      Returns:
      0: equals -1: a < b 1: a > b