晴川云鸿蒙OS教程:鸿蒙OS overview

Provides classes that leverage Java’s annotation mechanism to annotate desired variables and types, so as to eliminate circular reference and improve performance.

The related classes are as follows: Permanent, Unowned, UnownedLocal, UnownedOuter, and Weak.

Since:

1

annotation types summary

Annotation Type Description
Permanent Annotates persistent memory objects.
Unowned Annotates an object without ownership to eliminate circular reference.
UnownedLocal Annotates a method or a single local variable.
UnownedOuter Annotates a class to eliminate circular reference.
Weak Annotates weak reference objects.

原创文章,作者:晴川运维,如若转载,请注明出处:https://baike.qcidc.com/15952.html

(0)
晴川运维晴川运维
上一篇 2025年10月20日
下一篇 2025年10月20日

相关推荐

发表回复

登录后才能评论