Skip to content

[additional] Java reference ํƒ€์ž…์˜ ์ข…๋ฅ˜์™€ WeakHashMapย #14

Description

@wooyounggggg

์—ฐ๊ด€ ์ฑ•ํ„ฐ

#1

์กฐ์‚ฌ ๋‚ด์šฉ

์•„์ดํ…œ 7์—์„œ WeakHashMap์— ๋Œ€ํ•œ ์–ธ๊ธ‰์ด ๋‚˜์˜ค๋Š”๋ฐ, ์ด์™€ ๊ด€๋ จํ•ด ๋ฐฑ๊ธฐ์„ ๋‹˜ ๊ฐ•์˜์—์„œ Reference์˜ ๊ฐ•๋„์— ๋”ฐ๋ผ ๋‹ค์Œ์˜ 4๊ฐ€์ง€ reference type์„ ์†Œ๊ฐœํ•˜์˜€์Šต๋‹ˆ๋‹ค.

  1. StrongReference
  2. SoftReference
  3. WeakReference(WeakHashMap์—์„œ ์‚ฌ์šฉํ•˜๋Š” Reference)
  4. PhantomReference

์œ„์˜ Reference Type์„ ์กฐ์‚ฌํ•˜๊ณ , WeakHashMap์„ ์ดํ•ดํ•˜๊ธฐ ์œ„ํ•ด ํ•ด๋‹น ์ด์Šˆ๋ฅผ ๋ฐœํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions