Summary: Ctors | Methods | Inherited Methods | [Expand All]
public final class

# DataBufferObserverSet

extends Object
implements DataBufferObserver DataBufferObserver.Observable

java.lang.Object
↳ | com.google.android.gms.common.data.DataBufferObserverSet

## Class Overview

Utility class for managing a set of observers and distributing their notifications.

##### See Also

- `DataBufferObserver`

## Summary

Public Constructors
| DataBufferObserverSet()

Public Methods
void | addObserver(DataBufferObserver observer) Register the given observer for receiving change notifications.
void | clear() Clears the set of observers.
boolean | hasObservers() Returns true if this has any registered observers.
void | onDataChanged() Called when the overall data changes.
void | onDataRangeChanged(int position, int count) Called when a range of items changes.
void | onDataRangeInserted(int position, int count) Called when a range of items is inserted.
void | onDataRangeMoved(int fromPosition, int toPosition, int count) Called when a range of items is moved.
void | onDataRangeRemoved(int position, int count) Called when a range of items is removed.
void | removeObserver(DataBufferObserver observer) Unregister the given observer from receiving change notifications.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface com.google.android.gms.common.data.DataBufferObserver
abstract void | onDataChanged() Called when the overall data changes.
abstract void | onDataRangeChanged(int position, int count) Called when a range of items changes.
abstract void | onDataRangeInserted(int position, int count) Called when a range of items is inserted.
abstract void | onDataRangeMoved(int fromPosition, int toPosition, int count) Called when a range of items is moved.
abstract void | onDataRangeRemoved(int position, int count) Called when a range of items is removed.
From interface com.google.android.gms.common.data.DataBufferObserver.Observable
abstract void | addObserver(DataBufferObserver observer) Register the given observer for receiving change notifications.
abstract void | removeObserver(DataBufferObserver observer) Unregister the given observer from receiving change notifications.

## Public Constructors

#### public DataBufferObserverSet ()

## Public Methods

#### public void addObserver (DataBufferObserver observer)

Register the given observer for receiving change notifications.

#### public void clear ()

Clears the set of observers.

#### public boolean hasObservers ()

Returns true if this has any registered observers.

#### public void onDataChanged ()

Called when the overall data changes.

#### public void onDataRangeChanged (int position, int count)

Called when a range of items changes.

#### public void onDataRangeInserted (int position, int count)

Called when a range of items is inserted.

#### public void onDataRangeMoved (int fromPosition, int toPosition, int count)

Called when a range of items is moved.

#### public void onDataRangeRemoved (int position, int count)

Called when a range of items is removed.

#### public void removeObserver (DataBufferObserver observer)

Unregister the given observer from receiving change notifications.