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
- Alphabetic
- By Inheritance
- Observers
- AutoCloseable
- Observer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Observers()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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 .
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
- Definition Classes
- Observers → AutoCloseable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onError(throwable: Throwable): Unit
Fired if the underlying Observable encounters an error
-
def
onNext(t: T): Unit
Callback that is invoked whenever a change is detected by the Observable.
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )