English | Site Directory

Android - An Open Handset Alliance Project

java.lang.ref
public abstract class

java.lang.ref.Reference

java.lang.Object
java.lang.ref.Reference

Abstract class which describes behavior common to all reference objects.

Known Direct Subclasses
Known Indirect Subclasses

Summary

Public Methods

        void  clear()
Make the referent null.
        boolean  enqueue()
Force the reference object to be enqueued if it has been associated with a queue.
        T  get()
Return the referent of the reference object.
        boolean  isEnqueued()
Return whether the reference object has been enqueued.
Methods inherited from class java.lang.Object

Details

Public Methods

public void clear()

Make the referent null. This does not force the reference object to be enqueued.

public boolean enqueue()

Force the reference object to be enqueued if it has been associated with a queue.

Returns

  • boolean true if Reference is enqueued. false otherwise.

public T get()

Return the referent of the reference object.

Returns

  • Referent to which reference refers, or null if object has been cleared.

public boolean isEnqueued()

Return whether the reference object has been enqueued.

Returns

  • boolean true if Reference has been enqueued. false otherwise.
Build m5-rc15i - 10 Jun 2008 13:54