13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ @file:Suppress(" INVISIBLE_MEMBER" , " INVISIBLE_REFERENCE" )
16
17
package org.springframework.data.mongodb.core.query
17
18
18
19
import org.springframework.data.mapping.toDotPath
@@ -26,7 +27,7 @@ import kotlin.reflect.KProperty
26
27
* @since 4.4
27
28
* @see Update.update
28
29
*/
29
- fun <T > update (key : KProperty <T >, value : T ? ) =
30
+ fun <@kotlin.internal. OnlyInputTypes T > update (key : KProperty <T >, value : T ? ) =
30
31
Update .update(key.toDotPath(), value)
31
32
32
33
/* *
@@ -36,7 +37,7 @@ fun <T> update(key: KProperty<T>, value: T?) =
36
37
* @since 4.4
37
38
* @see Update.set
38
39
*/
39
- fun <T > Update.set (key : KProperty <T >, value : T ? ) =
40
+ fun <@kotlin.internal. OnlyInputTypes T > Update.set (key : KProperty <T >, value : T ? ) =
40
41
set(key.toDotPath(), value)
41
42
42
43
/* *
@@ -46,7 +47,7 @@ fun <T> Update.set(key: KProperty<T>, value: T?) =
46
47
* @since 4.4
47
48
* @see Update.setOnInsert
48
49
*/
49
- fun <T > Update.setOnInsert (key : KProperty <T >, value : T ? ) =
50
+ fun <@kotlin.internal. OnlyInputTypes T > Update.setOnInsert (key : KProperty <T >, value : T ? ) =
50
51
setOnInsert(key.toDotPath(), value)
51
52
52
53
/* *
@@ -56,7 +57,7 @@ fun <T> Update.setOnInsert(key: KProperty<T>, value: T?) =
56
57
* @since 4.4
57
58
* @see Update.unset
58
59
*/
59
- fun <T > Update.unset (key : KProperty <T >) =
60
+ fun <@kotlin.internal. OnlyInputTypes T > Update.unset (key : KProperty <T >) =
60
61
unset(key.toDotPath())
61
62
62
63
/* *
@@ -66,10 +67,10 @@ fun <T> Update.unset(key: KProperty<T>) =
66
67
* @since 4.4
67
68
* @see Update.inc
68
69
*/
69
- fun <T > Update.inc (key : KProperty <T >, inc : Number ) =
70
+ fun <@kotlin.internal. OnlyInputTypes T > Update.inc (key : KProperty <T >, inc : Number ) =
70
71
inc(key.toDotPath(), inc)
71
72
72
- fun <T > Update.inc (key : KProperty <T >) =
73
+ fun <@kotlin.internal. OnlyInputTypes T > Update.inc (key : KProperty <T >) =
73
74
inc(key.toDotPath())
74
75
75
76
/* *
@@ -79,7 +80,7 @@ fun <T> Update.inc(key: KProperty<T>) =
79
80
* @since 4.4
80
81
* @see Update.push
81
82
*/
82
- fun <T > Update.push (key : KProperty <Collection <T >>, value : T ? ) =
83
+ fun <@kotlin.internal. OnlyInputTypes T > Update.push (key : KProperty <Collection <T >>, value : T ? ) =
83
84
push(key.toDotPath(), value)
84
85
85
86
/* *
@@ -91,7 +92,7 @@ fun <T> Update.push(key: KProperty<Collection<T>>, value: T?) =
91
92
* @since 4.4
92
93
* @see Update.push
93
94
*/
94
- fun <T > Update.push (key : KProperty <T >) =
95
+ fun <@kotlin.internal. OnlyInputTypes T > Update.push (key : KProperty <T >) =
95
96
push(key.toDotPath())
96
97
97
98
/* *
@@ -102,7 +103,7 @@ fun <T> Update.push(key: KProperty<T>) =
102
103
* @since 4.4
103
104
* @see Update.addToSet
104
105
*/
105
- fun <T > Update.addToSet (key : KProperty <T >) =
106
+ fun <@kotlin.internal. OnlyInputTypes T > Update.addToSet (key : KProperty <T >) =
106
107
addToSet(key.toDotPath())
107
108
108
109
/* *
@@ -112,7 +113,7 @@ fun <T> Update.addToSet(key: KProperty<T>) =
112
113
* @since 4.4
113
114
* @see Update.addToSet
114
115
*/
115
- fun <T > Update.addToSet (key : KProperty <Collection <T >>, value : T ? ) =
116
+ fun <@kotlin.internal. OnlyInputTypes T > Update.addToSet (key : KProperty <Collection <T >>, value : T ? ) =
116
117
addToSet(key.toDotPath(), value)
117
118
118
119
/* *
@@ -122,7 +123,7 @@ fun <T> Update.addToSet(key: KProperty<Collection<T>>, value: T?) =
122
123
* @since 4.4
123
124
* @see Update.pop
124
125
*/
125
- fun <T > Update.pop (key : KProperty <T >, pos : Position ) =
126
+ fun <@kotlin.internal. OnlyInputTypes T > Update.pop (key : KProperty <T >, pos : Position ) =
126
127
pop(key.toDotPath(), pos)
127
128
128
129
/* *
@@ -132,7 +133,7 @@ fun <T> Update.pop(key: KProperty<T>, pos: Position) =
132
133
* @since 4.4
133
134
* @see Update.pull
134
135
*/
135
- fun <T > Update.pull (key : KProperty <T >, value : Any ) =
136
+ fun <@kotlin.internal. OnlyInputTypes T > Update.pull (key : KProperty <T >, value : Any ) =
136
137
pull(key.toDotPath(), value)
137
138
138
139
/* *
@@ -142,7 +143,7 @@ fun <T> Update.pull(key: KProperty<T>, value: Any) =
142
143
* @since 4.4
143
144
* @see Update.pullAll
144
145
*/
145
- fun <T > Update.pullAll (key : KProperty <Collection <T >>, values : Array <T >) =
146
+ fun <@kotlin.internal. OnlyInputTypes T > Update.pullAll (key : KProperty <Collection <T >>, values : Array <T >) =
146
147
pullAll(key.toDotPath(), values)
147
148
148
149
/* *
@@ -152,7 +153,7 @@ fun <T> Update.pullAll(key: KProperty<Collection<T>>, values: Array<T>) =
152
153
* @since 4.4
153
154
* @see Update.currentDate
154
155
*/
155
- fun <T > Update.currentDate (key : KProperty <T >) =
156
+ fun <@kotlin.internal. OnlyInputTypes T > Update.currentDate (key : KProperty <T >) =
156
157
currentDate(key.toDotPath())
157
158
158
159
/* *
@@ -162,7 +163,7 @@ fun <T> Update.currentDate(key: KProperty<T>) =
162
163
* @since 4.4
163
164
* @see Update.currentTimestamp
164
165
*/
165
- fun <T > Update.currentTimestamp (key : KProperty <T >) =
166
+ fun <@kotlin.internal. OnlyInputTypes T > Update.currentTimestamp (key : KProperty <T >) =
166
167
currentTimestamp(key.toDotPath())
167
168
168
169
/* *
@@ -172,7 +173,7 @@ fun <T> Update.currentTimestamp(key: KProperty<T>) =
172
173
* @since 4.4
173
174
* @see Update.multiply
174
175
*/
175
- fun <T > Update.multiply (key : KProperty <T >, multiplier : Number ) =
176
+ fun <@kotlin.internal. OnlyInputTypes T > Update.multiply (key : KProperty <T >, multiplier : Number ) =
176
177
multiply(key.toDotPath(), multiplier)
177
178
178
179
/* *
@@ -202,7 +203,7 @@ fun <T : Any> Update.min(key: KProperty<T>, value: T) =
202
203
* @since 4.4
203
204
* @see Update.bitwise
204
205
*/
205
- fun <T > Update.bitwise (key : KProperty <T >) =
206
+ fun <@kotlin.internal. OnlyInputTypes T > Update.bitwise (key : KProperty <T >) =
206
207
bitwise(key.toDotPath())
207
208
208
209
/* *
@@ -213,7 +214,7 @@ fun <T> Update.bitwise(key: KProperty<T>) =
213
214
* @since 4.4
214
215
* @see Update.filterArray
215
216
*/
216
- fun <T > Update.filterArray (identifier : KProperty <T >, expression : Any ) =
217
+ fun <@kotlin.internal. OnlyInputTypes T > Update.filterArray (identifier : KProperty <T >, expression : Any ) =
217
218
filterArray(identifier.toDotPath(), expression)
218
219
219
220
/* *
@@ -223,6 +224,6 @@ fun <T> Update.filterArray(identifier: KProperty<T>, expression: Any) =
223
224
* @since 4.4
224
225
* @see Update.modifies
225
226
*/
226
- fun <T > Update.modifies (key : KProperty <T >) =
227
+ fun <@kotlin.internal. OnlyInputTypes T > Update.modifies (key : KProperty <T >) =
227
228
modifies(key.toDotPath())
228
229
0 commit comments