-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from SujinEmilyCho/week10_sujin
[#68][2κΈ°] μΌλ°μ μΌλ‘ ν΅μ©λλ λͺ λͺ κ·μΉμ λ°λ₯΄λΌ
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
9μ₯/68_μΌλ°μ μΌλ‘_ν΅μ©λλ_λͺ
λͺ
_κ·μΉμ_λ°λ₯΄λΌ_μ‘°μμ§.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# μμ΄ν 68. μΌλ°μ μΌλ‘ ν΅μ©λλ λͺ λͺ κ·μΉμ λ°λ₯΄λΌ | ||
|
||
### μ² μ κ·μΉ - λ°λμ λ°λΌμΌ νλ€ | ||
|
||
1. ν¨ν€μ§ | ||
- κ° μμλ₯Ό μ (.)μΌλ‘ ꡬλΆνμ¬ κ³μΈ΅μ μΌλ‘ μ§λλ€ | ||
- λͺ¨λ μμλ€μ λͺ¨λ μλ¬Έμ μνλ²³ νΉμ (λλ¬Όκ²) μ«μλ‘ μ΄λ€μ§λ€ | ||
- μ‘°μ§ λ°μμλ μ¬μ©λ ν¨ν€μ§λΌλ©΄ μ‘°μ§μ μΈν°λ· λλ©μΈ μ΄λ¦μ μμμΌλ‘ μ¬μ©νλ€ | ||
ex edu.cmu, com.google, org.eff | ||
- νμ€ λΌμ΄λΈλ¬λ¦¬μ μ νμ ν¨ν€μ§λ€μ μμΈμ μΌλ‘ java, javaxλ‘ μμ | ||
- ν¨ν€μ§μ λλ¨Έμ§ λΆλΆμ 8μ μ΄νμ 짧μ λ¨μ΄, νλ μ΄μμ μμλ‘ μ΄λ€μ§λ€ | ||
- utilitiesλ³΄λ€ utilμ²λΌ μλ―Έκ° ν΅νλ μ½μ΄λ₯Ό μΆμ², μ½μ΄(ex. awt)λ κ°λ₯ | ||
- λ§μ κΈ°λ₯μ μ 곡νλ κ²½μ°μλ κ³μΈ΅μ λλ μ λ λ§μ μμλ‘ κ΅¬μ±ν΄λ μ’λ€(νμ ν¨ν€μ§) | ||
ex. java.util.concurrent.atomic | ||
2. ν΄λμ€, μΈν°νμ΄μ€(μ΄κ±° νμ , μ λν μ΄μ ν¬ν¨) | ||
- νλ μ΄μμ λ¨μ΄λ‘ μ΄λ€μ§λ©°, κ° λ¨μ΄λ λλ¬Έμλ‘ μμ(ex. List, FutherTask λ±) | ||
- μ¬λ¬ λ¨μ΄μ 첫 κΈμλ§ λ΄ μ½μ΄λ max, minμ²λΌ λ리 ν΅μ©λλ μ€μλ§μ μ μΈνκ³ λ¨μ΄λ₯Ό μ€μ¬μ°μ§ μλλ€ | ||
- μ½μμ κ²½μ° μ²« κΈμλ§ λλ¬Έμλ‘ μ°κ±°λ λͺ¨λ λλ¬Έμλ‘ μΈ μ μλλ°, κ°λ μ±κ³Ό λ¨μ΄ μλ―Έ ꡬλΆμ μν΄ μ²« κΈμλ§ λλ¬Έμλ‘ νλ μͺ½μ΄ λ§λ€(HttpUrl vs HTTPURL) | ||
3. λ©μλ, νλ | ||
- 첫 κΈμλ₯Ό μλ¬Έμλ‘ μ΄λ€λ μ λ§ λΉΌλ©΄ ν΄λμ€ λͺ λͺ κ·μΉκ³Ό κ°λ€ (ex. remove, ensureCapacity λ±) | ||
- λ¨, 첫 λ¨μ΄κ° μ½μ΄λΌλ©΄ κ·Έ λ¨μ΄ μ μ²΄κ° μλ¬Έμμ¬μΌ νλ€ | ||
4. μμ νλ(= static final νλ) | ||
- λͺ¨λ λ¨μ΄λ₯Ό λλ¬Έμλ‘ μ°λ©° λ¨μ΄ μ¬μ΄μλ λ°μ€λ‘ ꡬλΆνλ€ (ex. VALUES, NEGATIVE_INFINITY λ±) | ||
- μ΄λ¦μ λ°μ€μ μ¬μ©νλ μμλ μμ νλκ° μ μΌ | ||
5. μ§μ λ³μ | ||
- λ€λ₯Έ λ©€λ²μ λΉμ· | ||
- μ½μ΄λ₯Ό μ¨λ μ’λ€ (ex. i, denom, houseNum λ±) | ||
- μ λ ₯ 맀κ°λ³μλ μ‘°κΈ λ μ κ²½μ¨μ μ§μ κ² | ||
6. νμ 맀κ°λ³μ | ||
- λ³΄ν΅ ν λ¬Έμλ‘ νν | ||
- 컬λ μ μμ νμ E, 맡μ ν€μ κ°μ K, V, μμΈλ X, λ©μλμ λ°ν νμ μ R | ||
- κ·Έ μΈμ μμ νμ T, U, V νΉμ T1, T2, T3 | ||
|
||
### λ¬Έλ² κ·μΉ - μ μ°νλ€ | ||
|
||
1. ν¨ν€μ§ | ||
- κ·μΉ μμ | ||
2. κ°μ²΄λ₯Ό μμ±ν μ μλ ν΄λμ€(μ΄κ±° νμ ν¬ν¨) | ||
- λ³΄ν΅ λ¨μ λͺ μ¬λ λͺ μ¬κ΅¬λ₯Ό μ¬μ©νλ€ (ex. Thread, PriorityQueue, ChessPiece λ±) | ||
3. κ°μ²΄λ₯Ό μμ±ν μ μλ ν΄λμ€ | ||
- λ³΄ν΅ λ³΅μν λͺ μ¬λ‘ μ§λλ€ (ex. Collectors, Collections λ±) | ||
4. μΈν°νμ΄μ€ | ||
- ν΄λμ€μ λκ°μ΄ μ§κ±°λ able, ibleλ‘ λλλ νμ©μ¬λ‘ μ§λλ€ (ex. Collection, Comparator, Runnable, Iterable, Accessible) | ||
5. μ λν μ΄μ | ||
- μ§λ°°μ ΉμΈ κ·μΉ μμ΄ λͺ μ¬, λμ¬, μ μΉμ¬, νμ©μ¬ λ루 μ°μΈλ€ (ex. BindingAnnotation, Inject, ImplementedBy, Singleton λ±) | ||
6. λμμ μννλ λ©μλ | ||
- λμ¬λ (λͺ©μ μ΄λ₯Ό ν¬ν¨ν) λμ¬κ΅¬λ‘ μ§λλ€ (ex. append, drawImage) | ||
7. boolean κ°μ λ°ννλ λ©μλ | ||
- isλ (λλ¬Όκ²) hasλ‘ μμνκ³ λͺ μ¬, λͺ μ¬κ΅¬, νμ©μ¬λ‘ κΈ°λ₯νλ λ¨μ΄λ κ΅¬λ‘ λλλλ‘ μ§λλ€ (ex. isDigit, isProbablePrime, isEmpty, isEnabled, hasSiblings λ±) | ||
8. λ°ν νμ μ΄ booleanμ΄ μλκ±°λ, μΈμ€ν΄μ€μ μμ±μ λ°ννλ λ©μλ | ||
- λͺ μ¬, λͺ μ¬κ΅¬, νΉμ getμΌλ‘ μμνλ λμ¬κ΅¬ (ex. size, hashCode, getTime λ±) | ||
- getμΌλ‘ μμνλ ννλ μλ°λΉμ¦ λͺ μΈμ λΏλ¦¬λ₯Ό λκ³ μλ€. μ΄λ° λꡬμ μ΄μ°λ¬μ§λ μ½λλ₯Ό μμ±νλ€λ©΄ μ΄ κ·μΉμ λ°λΌλ μ’λ€. | ||
9. κ°μ²΄μ νμ μ λ°κΏμ λ°ννλ μΈμ€ν΄μ€ λ©μλ | ||
- toType (ex. toString, toArray λ±) | ||
10. κ°μ²΄μ λ΄μ©μ λ€λ₯Έ λ·°λ‘ λ³΄μ¬μ£Όλ λ©μλ | ||
- asType (ex. asList λ±) | ||
11. κ°μ²΄μ κ°μ κΈ°λ³Έ νμ κ°μΌλ‘ λ°ννλ λ©μλ | ||
- typeValue (ex. intValue λ±) | ||
12. μ μ ν©ν°λ¦¬ λ©μλ | ||
- from | ||
- of | ||
- valueOf | ||
- instance | ||
- getInstance | ||
- newInstance | ||
- getType | ||
- newType | ||
13. νλ μ΄λ¦ | ||
- ν΄λμ€, μΈν°νμ΄μ€, λ©μλ μ΄λ¦μ λΉν΄ λ λͺ ννκ³ λ μ€μ | ||
- API μ€κ³λ₯Ό μ νλ€λ©΄ νλκ° μ§μ λ ΈμΆλ μΌμ΄ κ±°μ μκΈ° λλ¬Έ | ||
- boolean νμ μ μ κ·Όμμμ is, hasλ₯Ό μ μΈν νν(ex. initialized, composite λ±) | ||
- λ€λ₯Έ νμ νλλΌλ©΄ λͺ μ¬λ λͺ μ¬κ΅¬ (ex. geight, digits, bodyStyle λ±) | ||
|
||
### μ 리 | ||
νμ€ λͺ λͺ κ·μΉμ 체νν΄μ μμ°μ€λ½κ² μ¬μ©νλΌ. | ||
μ² μ κ·μΉμ μ§κ΄μ μ΄κ³ λ°λμ λ°λΌμΌνλ κ·μΉμ΄λ€. | ||
λ¬Έλ² κ·μΉμ λμ¨νκ³ λ Όλλ μλ νΈμ΄λ€. μν©μ λ°λΌ μμμ μΌλ‘ νλ¨ν΄μ μμ±νμ. | ||
|
||
### μ°Έκ³ | ||
- μλ° μΈμ΄ λͺ μΈ[JLS, 6.1] |