Package icu.easyj.core.util
Class ComparableUtils
java.lang.Object
icu.easyj.core.util.ComparableUtils
比较工具类
- Author:
- wangliang181230
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
intcompare(T a, T b) Compare a and b.
-
Constructor Details
-
ComparableUtils
public ComparableUtils()
-
-
Method Details
-
compare
Compare a and b.- Type Parameters:
T- the type of the a and b- Parameters:
a- the comparable object ab- the comparable object b- Returns:
- 0: equals -1:
a < b1:a > b
-