Package com.metsci.glimpse.util.var2
Class VarUtils
- java.lang.Object
-
- com.metsci.glimpse.util.var2.VarUtils
-
public class VarUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VarUtils.ActivityConsumer<T>
static interface
VarUtils.OldNewActivityListener<V>
static interface
VarUtils.OldNewListener<V>
static interface
VarUtils.OldNewMapEntryActivityListener<K,V>
static interface
VarUtils.OldNewMapEntryListener<K,V>
-
Constructor Summary
Constructors Constructor Description VarUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActivityListenable
activityListenable(ActivityListenable... listenables)
static ActivityListenable
activityListenable(Collection<? extends ActivityListenable> listenables)
static <V0,V extends V0>
DisposableaddOldNewListener(ReadableVar<V> var, ListenerFlag flag, VarUtils.OldNewActivityListener<V0> listener)
static <V0,V extends V0>
DisposableaddOldNewListener(ReadableVar<V> var, VarUtils.OldNewActivityListener<V0> listener)
static <V0,V extends V0>
DisposableaddOldNewListener(ReadableVar<V> var, Function<? super ReadableVar<V>,Listenable> member, ListenerFlag flag, VarUtils.OldNewListener<V0> listener)
static <V0,V extends V0>
DisposableaddOldNewListener(ReadableVar<V> var, Function<? super ReadableVar<V>,Listenable> member, VarUtils.OldNewListener<V0> listener)
static <V0,V extends V0>
DisposableaddOldNewListener(ReadableVar<V> var, Function<? super ReadableVar<V>,Listenable> member, Set<? extends ListenerFlag> flags, VarUtils.OldNewListener<V0> listener)
static <V0,V extends V0>
DisposableaddOldNewListener(ReadableVar<V> var, Set<? extends ListenerFlag> flags, VarUtils.OldNewActivityListener<V0> listener)
static <T,T2 extends T>
booleanaddSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, boolean ongoing, T2 element)
static <T,T2 extends T>
booleanaddSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, T2 element)
static Listenable
allListenable(ActivityListenable... listenables)
static Listenable
allListenable(Collection<? extends ActivityListenable> listenables)
static Listenable
completedListenable(ActivityListenable... listenables)
static Listenable
completedListenable(Collection<? extends ActivityListenable> listenables)
static Disposable
doAddActivityListener(Listenable ongoing, Listenable completed, Set<? extends ListenerFlag> flags, ActivityListener listener)
static Disposable
doHandleImmediateFlag(Set<? extends ListenerFlag> flags, ActivityListener listener, Function<? super Set<? extends ListenerFlag>,? extends Disposable> doAddListener)
static Disposable
doHandleImmediateFlag(Set<? extends ListenerFlag> flags, Runnable immediateListener, Function<? super Set<? extends ListenerFlag>,? extends Disposable> doAddListener)
static <V> Listenable
filterListenable(Listenable rawListenable, Supplier<V> valueFn)
static <V> ActivityListener
filterListener(ActivityListener rawListener, Supplier<V> valueFn)
static <V> Runnable
filterListener(Runnable rawListener, Supplier<V> valueFn)
static Listenable
listenable(Listenable... listenables)
static Listenable
listenable(Collection<? extends Listenable> listenables)
static <T,R>
Collection<R>mapCollection(Collection<T> ts, Function<? super T,? extends R> fn)
static <K,V,K2 extends K>
ReadableVar<com.google.common.collect.ImmutableMap<K,V>>mapSubsetVar(ReadableVar<com.google.common.collect.ImmutableMap<K,V>> mapVar, ReadableVar<? extends Set<K2>> keysVar)
static <K,V,K2 extends K>
Var<com.google.common.collect.ImmutableMap<K,V>>mapSubsetVar(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, ReadableVar<? extends Set<K2>> keysVar)
When modifying the returned var, don't add mappings for keys that are not inkeysVar
.static <K,V,K2 extends K>
Var<V>mapValueVar(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, ReadableVar<K2> keyVar)
static <K,V,K2 extends K>
Var<V>mapValueVar(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, K2 key)
static <T> Disposable
onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super T> listener)
static <T> Disposable
onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, VarUtils.ActivityConsumer<? super T> listener)
static <T> Disposable
onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, ListenerFlag flag, Consumer<? super T> listener)
static <T> Disposable
onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Consumer<? super T> listener)
static <T> Disposable
onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super T> listener)
static <T> Disposable
onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super T> listener)
static <T> Disposable
onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super T> listener)
static <T> Disposable
onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, VarUtils.ActivityConsumer<? super T> listener)
static <T> Disposable
onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, ListenerFlag flag, Consumer<? super T> listener)
static <T> Disposable
onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Consumer<? super T> listener)
static <T> Disposable
onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super T> listener)
static <T> Disposable
onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super T> listener)
static <K0,V0,K extends K0,V extends V0>
DisposableonMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, ListenerFlag flag, VarUtils.OldNewMapEntryActivityListener<K0,V0> listener)
static <K0,V0,K extends K0,V extends V0>
DisposableonMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, VarUtils.OldNewMapEntryActivityListener<K0,V0> listener)
static <K0,V0,K extends K0,V extends V0>
DisposableonMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>>,Listenable> member, ListenerFlag flag, VarUtils.OldNewMapEntryListener<K0,V0> listener)
static <K0,V0,K extends K0,V extends V0>
DisposableonMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>>,Listenable> member, VarUtils.OldNewMapEntryListener<K0,V0> listener)
static <K0,V0,K extends K0,V extends V0>
DisposableonMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>>,Listenable> member, Set<? extends ListenerFlag> flags, VarUtils.OldNewMapEntryListener<K0,V0> listener)
static <K0,V0,K extends K0,V extends V0>
DisposableonMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Set<? extends ListenerFlag> flags, VarUtils.OldNewMapEntryActivityListener<K0,V0> listener)
static <K> Disposable
onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super K> listener)
static <K> Disposable
onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, VarUtils.ActivityConsumer<? super K> listener)
static <K> Disposable
onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, ListenerFlag flag, Consumer<? super K> listener)
static <K> Disposable
onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Consumer<? super K> listener)
static <K> Disposable
onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super K> listener)
static <K> Disposable
onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super K> listener)
static <K> Disposable
onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super K> listener)
static <K> Disposable
onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, VarUtils.ActivityConsumer<? super K> listener)
static <K> Disposable
onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, ListenerFlag flag, Consumer<? super K> listener)
static <K> Disposable
onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Consumer<? super K> listener)
static <K> Disposable
onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super K> listener)
static <K> Disposable
onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super K> listener)
static <A,B>
ReadableVar<B>propertyVar(ReadableVar<A> ownerVar, Function<? super A,? extends B> getFn)
static <A,B>
ReadableVar<B>propertyVar(ReadableVar<A> ownerVar, Function<? super A,? extends B> getFn, B fallback)
static <A,B>
Var<B>propertyVar(Var<A> ownerVar, Function<? super A,? extends B> getFn, BiFunction<? super A,B,? extends A> updateFn)
static <A,B>
Var<B>propertyVar(Var<A> ownerVar, Function<? super A,? extends B> getFn, BiFunction<? super A,B,? extends A> updateFn, B fallback)
static <K,V,K2 extends K,V2 extends V>
booleanputMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, boolean ongoing, K2 key, V2 value)
static <K,V,K2 extends K,V2 extends V>
booleanputMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, K2 key, V2 value)
static <T,T2 extends T>
booleanremoveSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, boolean ongoing, T2 element)
static <T,T2 extends T>
booleanremoveSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, T2 element)
static <T,T2 extends T>
Var<Boolean>setContainsVar(Var<com.google.common.collect.ImmutableSet<T>> setVar, T2 element)
static <A,B extends A,C>
ReadableVar<C>subclassPropertyVar(ReadableVar<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn)
static <A,B extends A,C>
ReadableVar<C>subclassPropertyVar(ReadableVar<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn, C fallback)
static <A,B extends A,C>
Var<C>subclassPropertyVar(Var<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn, BiFunction<? super B,C,? extends B> updateFn)
static <A,B extends A,C>
Var<C>subclassPropertyVar(Var<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn, BiFunction<? super B,C,? extends B> updateFn, C fallback)
static <A,B extends A>
ReadableVar<B>subclassVar(ReadableVar<A> superclassVar, Class<B> subclass)
static <A,B extends A>
Var<B>subclassVar(Var<A> superclassVar, Class<B> subclass)
static <K,V,K2 extends K>
booleanupdateMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, boolean ongoing, K2 key, Function<? super V,? extends V> updateFn)
static <K,V,K2 extends K>
booleanupdateMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, K2 key, Function<? super V,? extends V> updateFn)
static ActivityListenable
wrapListenable1(Listenable<VarEvent> listenable1)
The returned listenable does not supportListenerFlag.ORDER(int)
.static Listenable
wrapListenable1(Listenable<VarEvent> listenable1, Predicate<VarEvent> filter)
The returned listenable does not supportListenerFlag.ORDER(int)
.static <V> Var<V>
wrapVar1(Var<V> var1)
The returned var does not supportListenerFlag.ORDER(int)
.
-
-
-
Method Detail
-
listenable
@SafeVarargs public static Listenable listenable(Listenable... listenables)
-
listenable
public static Listenable listenable(Collection<? extends Listenable> listenables)
-
completedListenable
@SafeVarargs public static Listenable completedListenable(ActivityListenable... listenables)
-
completedListenable
public static Listenable completedListenable(Collection<? extends ActivityListenable> listenables)
-
allListenable
@SafeVarargs public static Listenable allListenable(ActivityListenable... listenables)
-
allListenable
public static Listenable allListenable(Collection<? extends ActivityListenable> listenables)
-
activityListenable
@SafeVarargs public static ActivityListenable activityListenable(ActivityListenable... listenables)
-
activityListenable
public static ActivityListenable activityListenable(Collection<? extends ActivityListenable> listenables)
-
mapCollection
public static <T,R> Collection<R> mapCollection(Collection<T> ts, Function<? super T,? extends R> fn)
-
mapValueVar
public static <K,V,K2 extends K> Var<V> mapValueVar(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, K2 key)
-
mapValueVar
public static <K,V,K2 extends K> Var<V> mapValueVar(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, ReadableVar<K2> keyVar)
-
mapSubsetVar
public static <K,V,K2 extends K> Var<com.google.common.collect.ImmutableMap<K,V>> mapSubsetVar(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, ReadableVar<? extends Set<K2>> keysVar)
When modifying the returned var, don't add mappings for keys that are not inkeysVar
. Such mappings will be ignored.Currently, no attempt is made to preserve the iteration order of
mapVar
. This might change in the future.
-
mapSubsetVar
public static <K,V,K2 extends K> ReadableVar<com.google.common.collect.ImmutableMap<K,V>> mapSubsetVar(ReadableVar<com.google.common.collect.ImmutableMap<K,V>> mapVar, ReadableVar<? extends Set<K2>> keysVar)
-
setContainsVar
public static <T,T2 extends T> Var<Boolean> setContainsVar(Var<com.google.common.collect.ImmutableSet<T>> setVar, T2 element)
-
propertyVar
public static <A,B> Var<B> propertyVar(Var<A> ownerVar, Function<? super A,? extends B> getFn, BiFunction<? super A,B,? extends A> updateFn)
-
propertyVar
public static <A,B> Var<B> propertyVar(Var<A> ownerVar, Function<? super A,? extends B> getFn, BiFunction<? super A,B,? extends A> updateFn, B fallback)
-
propertyVar
public static <A,B> ReadableVar<B> propertyVar(ReadableVar<A> ownerVar, Function<? super A,? extends B> getFn)
-
propertyVar
public static <A,B> ReadableVar<B> propertyVar(ReadableVar<A> ownerVar, Function<? super A,? extends B> getFn, B fallback)
-
subclassVar
public static <A,B extends A> Var<B> subclassVar(Var<A> superclassVar, Class<B> subclass)
-
subclassVar
public static <A,B extends A> ReadableVar<B> subclassVar(ReadableVar<A> superclassVar, Class<B> subclass)
-
subclassPropertyVar
public static <A,B extends A,C> Var<C> subclassPropertyVar(Var<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn, BiFunction<? super B,C,? extends B> updateFn)
-
subclassPropertyVar
public static <A,B extends A,C> Var<C> subclassPropertyVar(Var<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn, BiFunction<? super B,C,? extends B> updateFn, C fallback)
-
subclassPropertyVar
public static <A,B extends A,C> ReadableVar<C> subclassPropertyVar(ReadableVar<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn)
-
subclassPropertyVar
public static <A,B extends A,C> ReadableVar<C> subclassPropertyVar(ReadableVar<A> superclassVar, Class<B> subclass, Function<? super B,? extends C> getFn, C fallback)
-
addSetElement
public static <T,T2 extends T> boolean addSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, T2 element)
-
addSetElement
public static <T,T2 extends T> boolean addSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, boolean ongoing, T2 element)
-
removeSetElement
public static <T,T2 extends T> boolean removeSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, T2 element)
-
removeSetElement
public static <T,T2 extends T> boolean removeSetElement(Var<com.google.common.collect.ImmutableSet<T>> setVar, boolean ongoing, T2 element)
-
putMapValue
public static <K,V,K2 extends K,V2 extends V> boolean putMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, K2 key, V2 value)
-
putMapValue
public static <K,V,K2 extends K,V2 extends V> boolean putMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, boolean ongoing, K2 key, V2 value)
-
updateMapValue
public static <K,V,K2 extends K> boolean updateMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, K2 key, Function<? super V,? extends V> updateFn)
-
updateMapValue
public static <K,V,K2 extends K> boolean updateMapValue(Var<com.google.common.collect.ImmutableMap<K,V>> mapVar, boolean ongoing, K2 key, Function<? super V,? extends V> updateFn)
-
wrapListenable1
public static ActivityListenable wrapListenable1(Listenable<VarEvent> listenable1)
The returned listenable does not supportListenerFlag.ORDER(int)
.
-
wrapListenable1
public static Listenable wrapListenable1(Listenable<VarEvent> listenable1, Predicate<VarEvent> filter)
The returned listenable does not supportListenerFlag.ORDER(int)
.
-
wrapVar1
public static <V> Var<V> wrapVar1(Var<V> var1)
The returned var does not supportListenerFlag.ORDER(int)
.
-
addOldNewListener
public static <V0,V extends V0> Disposable addOldNewListener(ReadableVar<V> var, Function<? super ReadableVar<V>,Listenable> member, VarUtils.OldNewListener<V0> listener)
-
addOldNewListener
public static <V0,V extends V0> Disposable addOldNewListener(ReadableVar<V> var, Function<? super ReadableVar<V>,Listenable> member, ListenerFlag flag, VarUtils.OldNewListener<V0> listener)
-
addOldNewListener
public static <V0,V extends V0> Disposable addOldNewListener(ReadableVar<V> var, Function<? super ReadableVar<V>,Listenable> member, Set<? extends ListenerFlag> flags, VarUtils.OldNewListener<V0> listener)
-
addOldNewListener
public static <V0,V extends V0> Disposable addOldNewListener(ReadableVar<V> var, VarUtils.OldNewActivityListener<V0> listener)
-
addOldNewListener
public static <V0,V extends V0> Disposable addOldNewListener(ReadableVar<V> var, ListenerFlag flag, VarUtils.OldNewActivityListener<V0> listener)
-
addOldNewListener
public static <V0,V extends V0> Disposable addOldNewListener(ReadableVar<V> var, Set<? extends ListenerFlag> flags, VarUtils.OldNewActivityListener<V0> listener)
-
filterListenable
public static <V> Listenable filterListenable(Listenable rawListenable, Supplier<V> valueFn)
-
filterListener
public static <V> Runnable filterListener(Runnable rawListener, Supplier<V> valueFn)
-
filterListener
public static <V> ActivityListener filterListener(ActivityListener rawListener, Supplier<V> valueFn)
-
doHandleImmediateFlag
public static Disposable doHandleImmediateFlag(Set<? extends ListenerFlag> flags, Runnable immediateListener, Function<? super Set<? extends ListenerFlag>,? extends Disposable> doAddListener)
-
doHandleImmediateFlag
public static Disposable doHandleImmediateFlag(Set<? extends ListenerFlag> flags, ActivityListener listener, Function<? super Set<? extends ListenerFlag>,? extends Disposable> doAddListener)
-
doAddActivityListener
public static Disposable doAddActivityListener(Listenable ongoing, Listenable completed, Set<? extends ListenerFlag> flags, ActivityListener listener)
-
onMapEntryChanged
public static <K0,V0,K extends K0,V extends V0> Disposable onMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>>,Listenable> member, VarUtils.OldNewMapEntryListener<K0,V0> listener)
-
onMapEntryChanged
public static <K0,V0,K extends K0,V extends V0> Disposable onMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>>,Listenable> member, ListenerFlag flag, VarUtils.OldNewMapEntryListener<K0,V0> listener)
-
onMapEntryChanged
public static <K0,V0,K extends K0,V extends V0> Disposable onMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>>,Listenable> member, Set<? extends ListenerFlag> flags, VarUtils.OldNewMapEntryListener<K0,V0> listener)
-
onMapEntryChanged
public static <K0,V0,K extends K0,V extends V0> Disposable onMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, VarUtils.OldNewMapEntryActivityListener<K0,V0> listener)
-
onMapEntryChanged
public static <K0,V0,K extends K0,V extends V0> Disposable onMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, ListenerFlag flag, VarUtils.OldNewMapEntryActivityListener<K0,V0> listener)
-
onMapEntryChanged
public static <K0,V0,K extends K0,V extends V0> Disposable onMapEntryChanged(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,V>> var, Set<? extends ListenerFlag> flags, VarUtils.OldNewMapEntryActivityListener<K0,V0> listener)
-
onMapKeyAdded
public static <K> Disposable onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Consumer<? super K> listener)
-
onMapKeyAdded
public static <K> Disposable onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, ListenerFlag flag, Consumer<? super K> listener)
-
onMapKeyAdded
public static <K> Disposable onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super K> listener)
-
onMapKeyAdded
public static <K> Disposable onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, VarUtils.ActivityConsumer<? super K> listener)
-
onMapKeyAdded
public static <K> Disposable onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super K> listener)
-
onMapKeyAdded
public static <K> Disposable onMapKeyAdded(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super K> listener)
-
onMapKeyRemoved
public static <K> Disposable onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Consumer<? super K> listener)
-
onMapKeyRemoved
public static <K> Disposable onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, ListenerFlag flag, Consumer<? super K> listener)
-
onMapKeyRemoved
public static <K> Disposable onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super K> listener)
-
onMapKeyRemoved
public static <K> Disposable onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, VarUtils.ActivityConsumer<? super K> listener)
-
onMapKeyRemoved
public static <K> Disposable onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super K> listener)
-
onMapKeyRemoved
public static <K> Disposable onMapKeyRemoved(ReadableVar<? extends com.google.common.collect.ImmutableMap<K,?>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super K> listener)
-
onElementAdded
public static <T> Disposable onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Consumer<? super T> listener)
-
onElementAdded
public static <T> Disposable onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, ListenerFlag flag, Consumer<? super T> listener)
-
onElementAdded
public static <T> Disposable onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super T> listener)
-
onElementAdded
public static <T> Disposable onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, VarUtils.ActivityConsumer<? super T> listener)
-
onElementAdded
public static <T> Disposable onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super T> listener)
-
onElementAdded
public static <T> Disposable onElementAdded(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super T> listener)
-
onElementRemoved
public static <T> Disposable onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Consumer<? super T> listener)
-
onElementRemoved
public static <T> Disposable onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, ListenerFlag flag, Consumer<? super T> listener)
-
onElementRemoved
public static <T> Disposable onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Function<? super ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>>,Listenable> member, Set<? extends ListenerFlag> flags, Consumer<? super T> listener)
-
onElementRemoved
public static <T> Disposable onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, VarUtils.ActivityConsumer<? super T> listener)
-
onElementRemoved
public static <T> Disposable onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, ListenerFlag flag, VarUtils.ActivityConsumer<? super T> listener)
-
onElementRemoved
public static <T> Disposable onElementRemoved(ReadableVar<? extends com.google.common.collect.ImmutableCollection<T>> var, Set<? extends ListenerFlag> flags, VarUtils.ActivityConsumer<? super T> listener)
-
-