A common use for weak references is to implement a cache of objects without requiring that an object be kept alive solely because it appears in the cache.

 
  • 弱引用常用于实现对象的高速缓存而不需要该对象一直有效,因为它会被缓存起来。
今日热词
目录 附录 查词历史