鴻蒙OS overview

2020-09-17 16:08 更新

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.
以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)