public class StrAlgoArgs extends Object implements CompositeArgument
StrAlgoArgs.Builder and call the methods: keys(…).
StrAlgoArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
StrAlgoArgs.Builder
Builder entry points for
StrAlgoArgs. |
static class |
StrAlgoArgs.By |
| Constructor and Description |
|---|
StrAlgoArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
StrAlgoArgs |
by(StrAlgoArgs.By by,
String... keys) |
StrAlgoArgs |
charset(Charset charset) |
boolean |
isWithIdx() |
StrAlgoArgs |
justLen()
Request just the length of the match for results.
|
StrAlgoArgs |
minMatchLen(int minMatchLen)
restrict the list of matches to the ones of a given minimal length.
|
StrAlgoArgs |
withIdx()
Request match position in each strings for results.
|
StrAlgoArgs |
withMatchLen()
Request match len for results.
|
public StrAlgoArgs minMatchLen(int minMatchLen)
this StrAlgoArgs.public StrAlgoArgs justLen()
this StrAlgoArgs.public StrAlgoArgs withMatchLen()
this StrAlgoArgs.public StrAlgoArgs withIdx()
this StrAlgoArgs.public StrAlgoArgs by(StrAlgoArgs.By by, String... keys)
public boolean isWithIdx()
public StrAlgoArgs charset(Charset charset)
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 © 2021 lettuce.io. All rights reserved.