public interface ReferenceCounted
| 限定符和类型 | 方法和说明 |
|---|---|
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
ReferenceCounted |
retain()
Increases the reference count by
1. |
int refCnt()
0, it means this object has been deallocated.ReferenceCounted retain()
1.boolean release()
1 and deallocates this object if the reference count reaches at
0.true if and only if the reference count became 0 and this object has been deallocatedCopyright © 2008–2018 The Ant Financial. All rights reserved.