c

com.swoval.files

Observers

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()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addObserver(observer: Observer[_ >: T]): Int

    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
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def close(): Unit
    Definition Classes
    Observers → AutoCloseable
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def onError(throwable: Throwable): Unit

    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

    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

    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
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AutoCloseable

Inherited from Observer[T]

Inherited from AnyRef

Inherited from Any

Ungrouped