后浪云鸿蒙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://www.idc.net/help/190764/
文章版权归作者所有,未经允许请勿转载。
THE END