public class

Observables.ExposedArray<V>

extends Observables.AbstractObservable<ObservableArray.ArrayObserver>

implements ObservableArray<java.lang.Object>

 java.lang.Object

androidx.pdf.util.Observables.AbstractObservable<ObservableArray.ArrayObserver>

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

Overview

An array that can be read and observed. Array is understood here as a mapping of integers to Objects, with possible gaps in the indices (see ). In particular, unlike most lists, the index of a value won't change because another value is inserted or removed at a different index.

Summary

Fields
protected final <any>mArray

from Observables.AbstractObservable<O>mObservers
Constructors
publicExposedArray()

Methods
public java.lang.Objectget(int index)

public java.lang.Iterable<java.lang.Integer>keys()

public java.lang.Objectremove(int index)

public java.lang.Objectset(int index, java.lang.Object value)

public intsize()

from Observables.AbstractObservable<O>addObserver, getObservers, removeObserver
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

protected final <any> mArray

Constructors

public ExposedArray()

Methods

public int size()

public java.lang.Iterable<java.lang.Integer> keys()

public java.lang.Object set(int index, java.lang.Object value)

public java.lang.Object remove(int index)

public java.lang.Object get(int index)