Package glide.api.models.commands
Class RangeOptions.LexBoundary
- java.lang.Object
-
- glide.api.models.commands.RangeOptions.LexBoundary
-
- All Implemented Interfaces:
RangeOptions.LexRange
- Enclosing class:
- RangeOptions
public static class RangeOptions.LexBoundary extends java.lang.Object implements RangeOptions.LexRange
Represents a specific lexicographic boundary in a sorted set.
-
-
Constructor Summary
Constructors Constructor Description LexBoundary(@NonNull java.lang.String value)Creates a specific lexicographic boundary in a sorted set.LexBoundary(@NonNull java.lang.String value, boolean isInclusive)Creates a specific lexicographic boundary in a sorted set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoArgs()Convert the lex boundary to the Valkey protocol format.
-
-
-
Constructor Detail
-
LexBoundary
public LexBoundary(@NonNull @NonNull java.lang.String value, boolean isInclusive)Creates a specific lexicographic boundary in a sorted set.- Parameters:
value- The lex value.isInclusive- Whether the lex value is inclusive. Defaults to true if not set.
-
LexBoundary
public LexBoundary(@NonNull @NonNull java.lang.String value)Creates a specific lexicographic boundary in a sorted set.- Parameters:
value- The lex value.
-
-
Method Detail
-
toArgs
public java.lang.String toArgs()
Convert the lex boundary to the Valkey protocol format.- Specified by:
toArgsin interfaceRangeOptions.LexRange
-
-