Java: Set interface and Collection interface differences

前端 未结 4 1757
予麋鹿
予麋鹿 2021-02-12 10:39

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:04

    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.

提交回复
热议问题