后浪云鸿蒙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 TypeDescription
PermanentAnnotates persistent memory objects.
UnownedAnnotates an object without ownership to eliminate circular reference.
UnownedLocalAnnotates a method or a single local variable.
UnownedOuterAnnotates a class to eliminate circular reference.
WeakAnnotates weak reference objects.

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/189624.html<

(0)
运维的头像运维
上一篇2025-03-31 07:04
下一篇 2025-03-31 07:05

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注