Fixed - RSetRx and RSetReactive miss tryAdd method.

pull/4748/head
Nikita Koksharov 2 years ago
parent e9165903b5
commit 9a07b934c9

@ -239,4 +239,14 @@ public interface RSetReactive<V> extends RCollectionReactive<V>, RSortableReacti
*/
Mono<Set<V>> readIntersection(String... names);
/**
* Tries to add elements only if none of them in set.
*
* @param values - values to add
* @return <code>true</code> if elements successfully added,
* otherwise <code>false</code>.
*/
Mono<Boolean> tryAdd(V... values);
}

@ -241,4 +241,13 @@ public interface RSetRx<V> extends RCollectionRx<V>, RSortableRx<Set<V>> {
*/
Single<Set<V>> readIntersection(String... names);
/**
* Tries to add elements only if none of them in set.
*
* @param values - values to add
* @return <code>true</code> if elements successfully added,
* otherwise <code>false</code>.
*/
Single<Boolean> tryAdd(V... values);
}

Loading…
Cancel
Save