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
> **Note:**`ReadlineFlags` produces `EnumSet<ReadlineFlag>` values. These are accepted by the `ReadlineRequest` builder's `flags()` method and the `readline()` overloads.
226
+
227
+
### ReadlineRequest Builder
228
+
229
+
For calls that use several optional parameters, `ReadlineRequest` provides a builder pattern that avoids passing `null` for unused fields:
> **Note:** The existing `readline()` overloads with positional parameters are deprecated in favor of `ReadlineRequest`. They continue to work but new code should prefer the builder.
261
+
207
262
## Completion
208
263
209
264
### Completion Class
@@ -378,7 +433,7 @@ public enum Mode {
378
433
```java
379
434
EditMode editMode =EditModeBuilder.builder()
380
435
.mode(EditMode.Mode.EMACS)
381
-
.create();
436
+
.build();
382
437
383
438
Readline readline =ReadlineBuilder.builder()
384
439
.editMode(editMode)
@@ -478,7 +533,7 @@ public class InteractiveShell {
0 commit comments