1
zjp 2019-01-21 11:08:45 +08:00
https://www.v2ex.com/t/396685
我倾向于认为是作者的个人习惯和语义问题。List 的大小是 `size` 而不是 `length` 经常让我很困惑... |
2
codeismylife OP 我更倾向于架构方面。如果接口继承层级太多不容易看清楚,重复声明就不用向上查看。
|
3
zhaohui318 2019-01-21 11:21:40 +08:00
The List interface places additional stipulations, beyond those specified in the Collection interface, on the contracts of the iterator, add, remove, equals, and hashCode methods. Declarations for other inherited methods are also included here for convenience.
https://docs.oracle.com/javase/8/docs/api/java/util/List.html 在 list 里再抄一遍是为了文档看起来方便 |
4
codeismylife OP @zhaohui318 原……原来如此
|