File tree Expand file tree Collapse file tree 4 files changed +5
-19
lines changed
src/main/java/org/mybatis/dynamic/sql Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -263,25 +263,21 @@ static StringConstant stringConstant(String constant) {
263
263
}
264
264
265
265
// functions
266
- @ SafeVarargs
267
266
static <T extends Number > Add <T > add (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
268
267
BasicColumn ... subsequentColumns ) {
269
268
return Add .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
270
269
}
271
270
272
- @ SafeVarargs
273
271
static <T extends Number > Divide <T > divide (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
274
272
BasicColumn ... subsequentColumns ) {
275
273
return Divide .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
276
274
}
277
275
278
- @ SafeVarargs
279
276
static <T extends Number > Multiply <T > multiply (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
280
277
BasicColumn ... subsequentColumns ) {
281
278
return Multiply .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
282
279
}
283
280
284
- @ SafeVarargs
285
281
static <T extends Number > Subtract <T > subtract (BindableColumn <T > firstColumn , BasicColumn secondColumn ,
286
282
BasicColumn ... subsequentColumns ) {
287
283
return Subtract .of (firstColumn , secondColumn , Arrays .asList (subsequentColumns ));
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public UpdateDSL<R> equalToWhenPresent(Supplier<T> valueSupplier) {
168
168
169
169
public class UpdateWhereBuilder extends AbstractWhereDSL <UpdateWhereBuilder > implements Buildable <R > {
170
170
171
- public < T > UpdateWhereBuilder () {
171
+ public UpdateWhereBuilder () {
172
172
super ();
173
173
}
174
174
Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2016-2017 the original author or authors.
2
+ * Copyright 2016-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
15
15
*/
16
16
package org .mybatis .dynamic .sql .util ;
17
17
18
- import java .util .function .Function ;
19
-
20
- import org .mybatis .dynamic .sql .SqlColumn ;
21
-
18
+ @ FunctionalInterface
22
19
public interface InsertMapping {
23
- <R > R mapColumn (Function <SqlColumn <?>, R > mapper );
24
-
25
20
<R > R accept (InsertMappingVisitor <R > visitor );
26
21
}
Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2016-2017 the original author or authors.
2
+ * Copyright 2016-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
15
15
*/
16
16
package org .mybatis .dynamic .sql .util ;
17
17
18
- import java .util .function .Function ;
19
-
20
- import org .mybatis .dynamic .sql .SqlColumn ;
21
-
18
+ @ FunctionalInterface
22
19
public interface UpdateMapping {
23
- <R > R mapColumn (Function <SqlColumn <?>, R > mapper );
24
-
25
20
<R > R accept (UpdateMappingVisitor <R > visitor );
26
21
}
You can’t perform that action at this time.
0 commit comments