Tools.areEqual(Object a, Object b) 方法
定义
Equality check for objects that accounts for null value comparisons. If both objects are null, this will return false. Both objects must have .equals(...) implemented correctly for this method to work properly.
public static boolean areEqual(Object a, Object b)
参数
- a
- Object
the first object
- b
- Object
the seconds object
返回
boolean
if the two are equal