jianglilili / jianglilili/guodegang.github.io

Set接口

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### [Set接口及其实现类](https://blog.csdn.net/songbai1997/article/details/83042905)
Set接口的实现类的共同特点是不允许重复元素存在。Set接口中定义的常用方法同Collection接口;另外,**Set中对add()添加限制**,即不能添加相同内容的元素对象。**Set接口的实现类主要有HashSet和TreeSet类。**

- HashSet是**无序**集合的类,使用哈希表实现,因操作(查询、插入、删除等)速度快,比较使用于内容规模较大的元素。HashSet中允许包含值为null的元素,但最多只能有一个null元素

- TreeSet是**有序**的集合类,采用平衡二叉树的实现方式,操作速度较慢。

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides Chinese content about the Java Set interface, HashSet, and TreeSet but names no destination file, test, or entry point. First inspect the repository's documentation structure and determine where this material belongs; completion criteria and placement need clarification before work can start.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.