public class LcsArgs extends Object implements CompositeArgument
LcsArgs.Builder and call the methods: keys(…) .
LcsArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
LcsArgs.Builder
Builder entry points for
LcsArgs. |
| Constructor and Description |
|---|
LcsArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
LcsArgs |
by(String... keys) |
boolean |
isWithIdx() |
LcsArgs |
justLen()
Request just the length of the match for results.
|
LcsArgs |
minMatchLen(int minMatchLen)
restrict the list of matches to the ones of a given minimal length.
|
LcsArgs |
withIdx()
Request match position in each string for results.
|
LcsArgs |
withMatchLen()
Request match len for results.
|
public LcsArgs minMatchLen(int minMatchLen)
this LcsArgs.public LcsArgs justLen()
this LcsArgs.public LcsArgs withIdx()
this LcsArgs.public boolean isWithIdx()
public <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
build in interface CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2025 lettuce.io. All rights reserved.