public class JsonRangeArgs extends Object implements CompositeArgument
JsonRangeArgs
is a mutable object and instances should be used only once to avoid shared mutable state.
Modifier and Type | Class and Description |
---|---|
static class |
JsonRangeArgs.Builder
Builder entry points for
JsonRangeArgs . |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_END_INDEX
Default end index to indicate where to stop slicing the array
|
static int |
DEFAULT_START_INDEX
Default start index to indicate where to start slicing the array
|
Constructor and Description |
---|
JsonRangeArgs() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs . |
JsonRangeArgs |
start(long start)
Set the start index.
|
JsonRangeArgs |
stop(long stop)
Set the end index.
|
public static final int DEFAULT_START_INDEX
public static final int DEFAULT_END_INDEX
public JsonRangeArgs start(long start)
this
.public JsonRangeArgs stop(long stop)
this
.public <K,V> void build(CommandArgs<K,V> args)
CompositeArgument
CommandArgs
.
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 CompositeArgument
K
- Key type.V
- Value type.args
- the command arguments, must not be null
.Copyright © 2025 lettuce.io. All rights reserved.