A container for at most one instance of IBinder, useful as an "out parameter".
| 21 | |
| 22 | /** A container for at most one instance of {@link IBinder}, useful as an "out parameter". */ |
| 23 | public final class IBinderReceiver { |
| 24 | @Nullable private volatile IBinder value; |
| 25 | |
| 26 | /** Constructs a new, initially empty, container. */ |
| 27 | public IBinderReceiver() {} |
| 28 | |
| 29 | /** Returns the contents of this container or null if it is empty. */ |
| 30 | @Nullable |
| 31 | public IBinder get() { |
| 32 | return value; |
| 33 | } |
| 34 | |
| 35 | protected void set(IBinder value) { |
| 36 | this.value = value; |
| 37 | } |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected