Class

com.swoval.files

Observers

Related Doc: package files

Permalink

class Observers[T] extends Observer[T] with AutoCloseable

Container class that wraps multiple FileTreeViews.Observer and runs the callbacks for each whenever the PathWatcher detects an event.

T

the data type for the PathWatcher to which the observers correspond

Linear Supertypes
AutoCloseable, Observer[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Observers
  2. AutoCloseable
  3. Observer
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Observers()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addObserver(observer: Observer[_ >: T]): Int

    Permalink

    Add an cacheObserver to receive events.

    Add an cacheObserver to receive events.

    observer

    the new cacheObserver

    returns

    a handle to the added cacheObserver that can be used to halt observation using com.swoval.files.Observers.removeObserver .

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink
    Definition Classes
    Observers → AutoCloseable
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def onError(throwable: Throwable): Unit

    Permalink

    Fired if the underlying Observable encounters an error

    Fired if the underlying Observable encounters an error

    Definition Classes
    ObserversObserver
  18. def onNext(t: T): Unit

    Permalink

    Callback that is invoked whenever a change is detected by the Observable.

    Callback that is invoked whenever a change is detected by the Observable.

    t

    the changed instance

    Definition Classes
    ObserversObserver
  19. def removeObserver(handle: Int): Unit

    Permalink

    Remove an instance of CacheObserver that was previously added using com.swoval.files.Observers.addObserver.

    Remove an instance of CacheObserver that was previously added using com.swoval.files.Observers.addObserver.

    handle

    the handle to remove

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AutoCloseable

Inherited from Observer[T]

Inherited from AnyRef

Inherited from Any

Ungrouped