public abstract class

Ref<T>

extends Object

 java.lang.Object

↳com.parrot.drone.groundsdk.Ref<T>

Overview

A reference to an object that may change.

This is the base class used to access a backend object with an associated observer notified each time this associated object changes. Associated object may be null it the corresponding backend object doesn't exists yet or has been removed. Observer is notified when the backend object is created or removed, and when the ref is created if the backend object exists.

Summary

Constructors
publicRef()

Methods
public abstract voidclose()

Closes the ref.

public abstract Objectget()

Gets the referenced object.

from Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Ref()

Methods

public abstract Object get()

Gets the referenced object.

Returns:

referenced object

public abstract void close()

Closes the ref.