Package com.metsci.glimpse.util.var2
Class VarBasic<V>
- java.lang.Object
-
- com.metsci.glimpse.util.var2.VarBasic<V>
-
- All Implemented Interfaces:
ActivityListenable
,ReadableVar<V>
,Var<V>
public class VarBasic<V> extends Object implements Var<V>
-
-
Field Summary
-
Fields inherited from interface com.metsci.glimpse.util.var2.ActivityListenable
ALL, COMPLETED
-
-
Method Summary
All Methods Instance 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.boolean
isValid(V value)
V
requireValid(V value)
boolean
set(boolean ongoing, V value)
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
-
Methods inherited from interface com.metsci.glimpse.util.var2.Var
set, update, update, updateIfNonNull, updateIfNonNull
-
-
-
-
Method Detail
-
isValid
public boolean isValid(V value)
-
v
public 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
-
-