Commit be0e7f3
IamCornholio
Add overrides for incomplete builder and supplier
- Add a jdk8 supplier-esque builder function interface to support
lambda builder functions.
- Add overridden methods for incomplete builders as parameters that
also call .build(). This way users can avoid the awkwardness from
syntax such as this .build()).build()).build())...
- Add methods to builders in GraphqlQLObjectType,
GraphqlInputObjectType, GraphqlFieldDefinition, GraphQLInterfaceType
to support lamda builder functions.
- Update readme.md samples with new builder syntax
- Update all tests to use the builder override1 parent cbbe2e2 commit be0e7f3
31 files changed
Lines changed: 430 additions & 421 deletions
File tree
- src
- main/java/graphql
- introspection
- relay
- schema
- test/groovy/graphql
- execution
- batched
- schema
- validation
- rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
163 | | - | |
164 | | - | |
| 162 | + | |
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
168 | | - | |
169 | | - | |
| 166 | + | |
170 | 167 | | |
171 | 168 | | |
172 | 169 | | |
| |||
181 | 178 | | |
182 | 179 | | |
183 | 180 | | |
184 | | - | |
185 | | - | |
| 181 | + | |
186 | 182 | | |
187 | 183 | | |
188 | 184 | | |
| |||
234 | 230 | | |
235 | 231 | | |
236 | 232 | | |
237 | | - | |
238 | | - | |
| 233 | + | |
239 | 234 | | |
240 | 235 | | |
241 | 236 | | |
| |||
289 | 284 | | |
290 | 285 | | |
291 | 286 | | |
292 | | - | |
293 | | - | |
| 287 | + | |
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
| |||
325 | 319 | | |
326 | 320 | | |
327 | 321 | | |
328 | | - | |
329 | | - | |
| 322 | + | |
330 | 323 | | |
331 | 324 | | |
332 | 325 | | |
| |||
355 | 348 | | |
356 | 349 | | |
357 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
358 | 364 | | |
359 | 365 | | |
360 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
0 commit comments