@@ -34,7 +34,8 @@ public class ServerValue {
34
34
createScalarServerValuePlaceholder (ServerValues .NAME_OP_TIMESTAMP );
35
35
36
36
/**
37
- * Adds the given delta to the current value at a location.
37
+ * Returns a placeholder value that can be used to atomically increment the current database value
38
+ * by the provided delta.
38
39
*
39
40
* <p>The delta must be an long or a double value. If the current value is not an integer or
40
41
* double, or if the data does not yet exist, the transformation will set the data to the delta
@@ -46,12 +47,13 @@ public class ServerValue {
46
47
* @return a placeholder value for modifying data atomically server-side.
47
48
*/
48
49
@ NonNull
49
- static final Object increment (long delta ) {
50
+ public static final Object increment (long delta ) {
50
51
return createParameterizedServerValuePlaceholder (ServerValues .NAME_OP_INCREMENT , delta );
51
52
}
52
53
53
54
/**
54
- * Adds the given delta to the current value at a location.
55
+ * Returns a placeholder value that can be used to atomically increment the current database value
56
+ * by the provided delta.
55
57
*
56
58
* <p>The delta must be an long or a double value. If the current value is not an integer or
57
59
* double, or if the data does not yet exist, the transformation will set the data to the delta
@@ -63,7 +65,7 @@ static final Object increment(long delta) {
63
65
* @return a placeholder value for modifying data atomically server-side.
64
66
*/
65
67
@ NonNull
66
- static final Object increment (double delta ) {
68
+ public static final Object increment (double delta ) {
67
69
return createParameterizedServerValuePlaceholder (ServerValues .NAME_OP_INCREMENT , delta );
68
70
}
69
71
0 commit comments