一.简介 根据官方API的定义: final def ==(arg0: Any): Boolean The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that). final def eq(arg0: AnyRef): Boolean Tests whether the argument (that) is a reference to the receiver object (…
根据官方API的定义: final def ==(arg0: Any): Boolean The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that). final def eq(arg0: AnyRef): Boolean Tests whether the argument (that) is a reference to the receiver object (this)…