quanke
Thinking in Java (Java 编程思想)

Updated a month ago

ChasonChen (@chasonchen) started discussion #15

10 months ago · 0 comments

Open

Set(接口) 添加到Set的每个元素都必须是独一无二的;否则Set就不会添加重复的元素。添加到Set里的对象必须定义equals(),从而建立对象的唯一性。Set拥有与Collection完全相同的接口。一个Set不能保证自己可按任何特定的顺序维持自己的元素

8.7 新集合 (Edit this file)

ArraySet 用于小set,创建删除成本较低。

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant