1- package io .ably .lib .objects ;
1+ package io .ably .lib .plugins . objects ;
22
3- import io .ably .lib .objects .batch .BatchContextBuilder ;
3+ import io .ably .lib .plugins . objects .batch .BatchContextBuilder ;
44import io .ably .lib .types .Callback ;
5+ import org .jetbrains .annotations .NotNull ;
6+
57
68import java .util .Map ;
79
@@ -24,84 +26,84 @@ public interface LiveObjects {
2426 *
2527 * @param batchContextCallback the callback to handle the BatchContext or error.
2628 */
27- void batch (BatchContextBuilder batchContextCallback );
29+ void batch (@ NotNull BatchContextBuilder batchContextCallback );
2830
2931 /**
3032 * Creates a new LiveMap based on an existing LiveMap.
3133 *
3234 * @param liveMap the existing LiveMap to base the new LiveMap on.
3335 * @return the newly created LiveMap instance.
3436 */
35- LiveMap createMap (LiveMap liveMap );
37+ LiveMap createMap (@ NotNull LiveMap liveMap );
3638
3739 /**
3840 * Creates a new LiveMap based on a LiveCounter.
3941 *
4042 * @param liveCounter the LiveCounter to base the new LiveMap on.
4143 * @return the newly created LiveMap instance.
4244 */
43- LiveMap createMap (LiveCounter liveCounter );
45+ LiveMap createMap (@ NotNull LiveCounter liveCounter );
4446
4547 /**
4648 * Creates a new LiveMap based on a standard Java Map.
4749 *
4850 * @param map the Java Map to base the new LiveMap on.
4951 * @return the newly created LiveMap instance.
5052 */
51- LiveMap createMap (Map <String , Object > map );
53+ LiveMap createMap (@ NotNull Map <String , Object > map );
5254
5355 /**
5456 * Creates a new LiveCounter with an initial value.
5557 *
5658 * @param initialValue the initial value of the LiveCounter.
5759 * @return the newly created LiveCounter instance.
5860 */
59- LiveCounter createCounter (Long initialValue );
61+ LiveCounter createCounter (@ NotNull Long initialValue );
6062
6163 /**
6264 * Asynchronously retrieves the root LiveMap object.
6365 *
6466 * @param callback the callback to handle the result or error.
6567 */
66- void getRootAsync (Callback <LiveMap > callback );
68+ void getRootAsync (@ NotNull Callback <LiveMap > callback );
6769
6870 /**
6971 * Initiates a batch operation asynchronously.
7072 *
7173 * @param batchContextCallback the BatchContextBuilder to build the BatchContext.
7274 * @param callback the Callback to handle the completion or error of the batch operation.
7375 */
74- void batchAsync (BatchContextBuilder batchContextCallback , Callback <Void > callback );
76+ void batchAsync (@ NotNull BatchContextBuilder batchContextCallback , @ NotNull Callback <Void > callback );
7577
7678 /**
7779 * Asynchronously creates a new LiveMap based on an existing LiveMap.
7880 *
7981 * @param liveMap the existing LiveMap to base the new LiveMap on.
8082 * @param callback the callback to handle the result or error.
8183 */
82- void createMapAsync (LiveMap liveMap , Callback <LiveMap > callback );
84+ void createMapAsync (@ NotNull LiveMap liveMap , @ NotNull Callback <LiveMap > callback );
8385
8486 /**
8587 * Asynchronously creates a new LiveMap based on a LiveCounter.
8688 *
8789 * @param liveCounter the LiveCounter to base the new LiveMap on.
8890 * @param callback the callback to handle the result or error.
8991 */
90- void createMapAsync (LiveCounter liveCounter , Callback <LiveMap > callback );
92+ void createMapAsync (@ NotNull LiveCounter liveCounter , @ NotNull Callback <LiveMap > callback );
9193
9294 /**
9395 * Asynchronously creates a new LiveMap based on a standard Java Map.
9496 *
9597 * @param map the Java Map to base the new LiveMap on.
9698 * @param callback the callback to handle the result or error.
9799 */
98- void createMapAsync (Map <String , Object > map , Callback <LiveMap > callback );
100+ void createMapAsync (@ NotNull Map <String , Object > map , @ NotNull Callback <LiveMap > callback );
99101
100102 /**
101103 * Asynchronously creates a new LiveCounter with an initial value.
102104 *
103105 * @param initialValue the initial value of the LiveCounter.
104106 * @param callback the callback to handle the result or error.
105107 */
106- void createCounterAsync (Long initialValue , Callback <LiveCounter > callback );
108+ void createCounterAsync (@ NotNull Long initialValue , @ NotNull Callback <LiveCounter > callback );
107109}
0 commit comments