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