类 ObjectUtils
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.utils.ObjectUtils
-
public class ObjectUtils extends Object
-
-
构造器概要
构造器 构造器 说明 ObjectUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static intcompare(Object obj1, Object obj2)Compares two comparable objects.static intdoubleCompare(double arg1, double arg2)Compares two Double numeric object.static BigDecimalminus(Object minuend, Object subtrahend)Returns the differenceBigDecimalwhose value is(minuend - subtrahend).static Objectplus(Object number, int augend)Returns a numberObjectwhose value is(number + augend), Note: This method will throwArithmeticExceptionif number overflows.
-
-
-
方法详细资料
-
plus
public static Object plus(Object number, int augend) throws ArithmeticException
Returns a numberObjectwhose value is(number + augend), Note: This method will throwArithmeticExceptionif number overflows.
-
minus
public static BigDecimal minus(Object minuend, Object subtrahend)
Returns the differenceBigDecimalwhose value is(minuend - subtrahend).
-
compare
public static int compare(Object obj1, Object obj2)
Compares two comparable objects.- 返回:
- The value
0ifnum1is equal to thenum2; a value less than0if thenum1is numerically less than thenum2; and a value greater than0if thenum1is numerically greater than thenum2. - 抛出:
ClassCastException- if the compared objects are not instance ofComparableor not mutually comparable (for example, strings and integers).
-
doubleCompare
public static int doubleCompare(double arg1, double arg2)Compares two Double numeric object.- 返回:
- -1, 0, or 1 as this
arg1is numerically less than, equal to, or greater thanarg2.
-
-