public abstract class Reference<T> extends Object
public T get()
null
。
null
如果引用对象被清除
public void clear()
此方法仅由java代码调用;当垃圾收集器清除引用如此直接,没有调用该方法。
public boolean isEnqueued()
false
。
true
如果引用对象已排队
public boolean enqueue()
此方法仅由java代码调用;当垃圾收集器入队的引用如此直接,没有调用该方法。
true
如果引用对象被成功
false
入队;如果是已经排队还是不排队注册创建它时
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.