This interface does not refine the general contracts of the equals and hashCode methods. The result of comparing two objects that implement CharSequence is therefore, in general, undefined. Each object may be implemented by a different class, and there is no guarantee that each class will be capable of testing its instances for equality with those of the other. It is therefore inappropriate to use arbitrary CharSequence instances as elements in a set or as keys in a map.
kwj 發表於 2018-10-25 09:56 AM
另外修正一下前面的錯誤,本來 @NonNull 這樣的 Annotation 是出現在包含 Android、Spring 等非原生 Java ...
codewice 發表於 2018-10-26 01:34 AM
在 Object 的 toString 敘述是「取得一個能夠描述這個物件的、人類看得懂的字串」
Returns a string c ...
歡迎光臨 伊莉討論區 (http://a401.file-static.com/) | Powered by Discuz! |