You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api.md
+20-31Lines changed: 20 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -289,46 +289,35 @@ List<Integer> val = iter.read(new TypeLiteral<ArrayList<Integer>>(){});
289
289
290
290
The type literal instance might be reused globally, which is thread-safe.
291
291
292
-
## Bind callback
293
-
294
-
The downside of binding is there is always exception. We want the field to be string, but some input put the field as int. Being able to customize the binding is crucial. The answer is callback. Add callback hook in the binding process, then we can use iterator api to take back the control.
295
-
296
-
Register type decoder to parse element of specific type to use your callback
Object and map will be reused as it is. Array will not be reused. Collection will be reused, but with elements cleared.
312
+
313
+
## Bind callback
314
+
315
+
The downside of binding is there is always exception. We want the field to be string, but some input put the field as int. Being able to customize the binding is crucial. The answer is callback. Add callback hook in the binding process, then we can use iterator api to take back the control.
316
+
317
+
The callback itself is too complicated here, please checkout extension guides:
0 commit comments