"add" with just value and getter/setter
This commit is contained in:
parent
7d944b3167
commit
6f60a4cd24
@ -4,7 +4,7 @@ kotlin.code.style=official
|
|||||||
specifyKotlinAsDependency=false
|
specifyKotlinAsDependency=false
|
||||||
|
|
||||||
projectGroup=ru.dbotthepony.kommons
|
projectGroup=ru.dbotthepony.kommons
|
||||||
projectVersion=2.9.5
|
projectVersion=2.9.7
|
||||||
|
|
||||||
guavaDepVersion=33.0.0
|
guavaDepVersion=33.0.0
|
||||||
gsonDepVersion=2.8.9
|
gsonDepVersion=2.8.9
|
||||||
|
@ -423,6 +423,10 @@ class DelegateSyncher : Observer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun <V> add(value: V, codec: StreamCodec<V>, setter: DelegateSetter<V> = DelegateSetter.passthrough(), getter: DelegateGetter<V> = DelegateGetter.passthrough()): Slot<V> {
|
||||||
|
return Slot(ListenableDelegate.maskSmart(value, getter, setter), codec)
|
||||||
|
}
|
||||||
|
|
||||||
fun <V> add(delegate: ListenableDelegate<V>, codec: StreamCodec<V>): Slot<V> {
|
fun <V> add(delegate: ListenableDelegate<V>, codec: StreamCodec<V>): Slot<V> {
|
||||||
return Slot(delegate, codec)
|
return Slot(delegate, codec)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user