IT. Expert System.

Android Reference

Observable


android.database

Class Observable<T>

  • Direct Known Subclasses:
    ContentObservable, DataSetObservable


    public abstract class Observable<T>
    extends Object
    Provides methods for registering or unregistering arbitrary observers in an ArrayList. This abstract class is intended to be subclassed and specialized to maintain a registry of observers of specific types and dispatch notifications to them.
    • Field Detail

      • mObservers

        protected final ArrayList<T> mObservers
        The list of observers. An observer can be in the list at most once and will never be null.
    • Constructor Detail

      • Observable

        public Observable()
    • Method Detail

      • registerObserver

        public void registerObserver(T observer)
        Adds an observer to the list. The observer cannot be null and it must not already be registered.
        Parameters:
        observer - the observer to register
        Throws:
        IllegalArgumentException - the observer is null
        IllegalStateException - the observer is already registered
      • unregisterObserver

        public void unregisterObserver(T observer)
        Removes a previously registered observer. The observer must not be null and it must already have been registered.
        Parameters:
        observer - the observer to unregister
        Throws:
        IllegalArgumentException - the observer is null
        IllegalStateException - the observer is not yet registered
      • unregisterAll

        public void unregisterAll()
        Remove all registered observers.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3664 / . Delta: 0.02615 с