Package com.metsci.glimpse.util.var2
Class ReadableVarDerived<V>
- java.lang.Object
-
- com.metsci.glimpse.util.var2.ReadableVarDerived<V>
-
- All Implemented Interfaces:
ActivityListenable
,ReadableVar<V>
- Direct Known Subclasses:
ReadableVarDerivedCaching
,VarDerived
public abstract class ReadableVarDerived<V> extends Object implements ReadableVar<V>
-
-
Field Summary
-
Fields inherited from interface com.metsci.glimpse.util.var2.ActivityListenable
ALL, COMPLETED
-
-
Constructor Summary
Constructors Constructor Description ReadableVarDerived(ActivityListenable... listenables)
ReadableVarDerived(Collection<? extends ActivityListenable> listenables)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Disposable
addListener(Set<? extends ListenerFlag> flags, ActivityListener listener)
Listenable
all()
Includes notifications for both ongoing and completed events.Listenable
completed()
Includes notifications for completed events only.abstract V
v()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.metsci.glimpse.util.var2.ActivityListenable
addListener, addListener, addListener, addListener, addListener
-
-
-
-
Constructor Detail
-
ReadableVarDerived
@SafeVarargs public ReadableVarDerived(ActivityListenable... listenables)
-
ReadableVarDerived
public ReadableVarDerived(Collection<? extends ActivityListenable> listenables)
-
-
Method Detail
-
v
public abstract V v()
- Specified by:
v
in interfaceReadableVar<V>
-
completed
public Listenable completed()
Description copied from interface:ActivityListenable
Includes notifications for completed events only.- Specified by:
completed
in interfaceActivityListenable
-
all
public Listenable all()
Description copied from interface:ActivityListenable
Includes notifications for both ongoing and completed events.- Specified by:
all
in interfaceActivityListenable
-
addListener
public Disposable addListener(Set<? extends ListenerFlag> flags, ActivityListener listener)
- Specified by:
addListener
in interfaceActivityListenable
-
-