V - value type used for value-based comparisons@Experimental public final class CompareCondition<V> extends Object
Digest-based comparisons use a 64-bit XXH3 digest represented as a 16-character lower-case hexadecimal string.
| Modifier and Type | Class and Description |
|---|---|
static class |
CompareCondition.Condition
The kind of condition represented by this instance.
|
| Modifier and Type | Method and Description |
|---|---|
<K> void |
build(CommandArgs<K,V> args)
Append this condition's protocol arguments to the given args.
|
static <V> CompareCondition<V> |
digestEq(String hex16Digest)
Create a digest-based equality condition; succeeds only if the current value's digest matches the given 16-character
lower-case hex digest.
|
static <V> CompareCondition<V> |
digestNe(String hex16Digest)
Create a digest-based inequality condition; succeeds only if the current value's digest does not match the given
16-character lower-case hex digest.
|
CompareCondition.Condition |
getCondition()
The kind of this condition.
|
String |
getDigest()
The 16-character lower-case hex digest for digest-based comparisons, or
null. |
V |
getValue()
The value for value-based comparisons, or
null. |
String |
toString() |
static <V> CompareCondition<V> |
valueEq(V value)
Create a value-based equality condition; succeeds only if the current value equals the given value.
|
static <V> CompareCondition<V> |
valueNe(V value)
Create a value-based inequality condition; succeeds only if the current value does not equal the given value.
|
public <K> void build(CommandArgs<K,V> args)
public static <V> CompareCondition<V> valueEq(V value)
public static <V> CompareCondition<V> valueNe(V value)
public static <V> CompareCondition<V> digestEq(String hex16Digest)
public static <V> CompareCondition<V> digestNe(String hex16Digest)
public CompareCondition.Condition getCondition()
public V getValue()
null.public String getDigest()
null.Copyright © 2025 lettuce.io. All rights reserved.