Java: Set interface and Collection interface differences

前端 未结 4 2149
时光取名叫无心
时光取名叫无心 2021-02-12 10:43

I just looked up the Set interface and found that it mostly (or completely) only redeclares functions which are already in the Collection interface.

4条回答
  •  自闭症患者
    2021-02-12 11:11

    There is more to a method than its signature.

    In this case, the documentation of these methods has been tailored to sets, in terms of pre- and post-conditions, and terminology.

提交回复
热议问题