public class

Observables.ExposedValue<V>

extends Observables.MultiObservers<ObservableValue.ValueObserver>

implements ObservableValue<java.lang.Object>

 java.lang.Object

androidx.pdf.util.Observables.MultiObservers<ObservableValue.ValueObserver>

↳androidx.pdf.util.Observables.ExposedValue<V>

Overview

A value that can be read and observed.

Summary

Fields
protected java.lang.ObjectmValue

Constructors
protectedExposedValue(java.lang.Object initialValue)

Constructor with supplied initial value.

Methods
public java.lang.Objectget()

protected voidnotifyObservers(java.lang.Object oldValue)

public voidset(java.lang.Object newValue)

Sets a new value and notifies all observers (even if the new value is the same as it was).

from Observables.MultiObservers<O>addObserver, cleanup, finalize, hasObservers, iterator, removeObserver
from java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

protected java.lang.Object mValue

Constructors

protected ExposedValue(java.lang.Object initialValue)

Constructor with supplied initial value. Observers are not notified when assigning initial value.

Parameters:

initialValue: The initial value.

Methods

public void set(java.lang.Object newValue)

Sets a new value and notifies all observers (even if the new value is the same as it was).

public java.lang.Object get()

protected void notifyObservers(java.lang.Object oldValue)