Android中的String、StringBuilder、StringBuffer、CharSequence
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 25/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- android, java
- Domain
- documentation
Research direction
The issue contains a Chinese overview of CharSequence, String, StringBuffer, and StringBuilder for Android, but names no repository file, test, or specific documentation change. Start by inspecting how AndroidNote organizes learning notes and clarify the intended update; done should be defined as an agreed documentation change.
Written by the indexing model from the issue text.
Description
好吧,这是一个基础题。
这些与文本有关的几个名词都是我们在开发过程中常见的内容,对其多多少少都有些了解。不过嘛,很少人能真正明白其中几个东西的关系就是了。
关系
首先,CharSequence是一个接口,用于表示有序的字符集合,并提供了一些基本的操作方法。
String StringBuffer StringBuilder都实现了CharSequence这个接口。
关系图如下:

区别
我们了解了他们的关系之后,我们再了解一下他们的区别:
| 名称 | 说明 |
|---|---|
| CharSequence | 接口,表示有序的字符集合 |
| String | 常量,不可变 |
| StringBuffer | 可变长度字符序列,线程安全 |
| StringBuilder | 可变长度字符序列,非线程安全 |
- Dominant language
- Java
- Stars
- 9.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GcsSloop/AndroidNote
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
GcsSloop/AndroidNote#116 ·
-
安卓 Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
GcsSloop/AndroidNote#115 ·
-
章节缺失:安卓自定义View进阶 Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
GcsSloop/AndroidNote#114 ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 55/100
GcsSloop/AndroidNote#111 · 2 reactions ·
-
博客有几篇打不开了 Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
GcsSloop/AndroidNote#110 ·
All issues in GcsSloop/AndroidNote
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·