- Type Parameters:
K- Key type.V- Value type.
public class DoubleOutput<K,V> extends CommandOutput<K,V,Double>
Double output, may be null.
- Author:
- Will Glozer
-
Field Summary
Fields inherited from class io.lettuce.core.output.CommandOutput
codec, error, output -
Constructor Summary
Constructors Constructor Description DoubleOutput(RedisCodec<K,V> codec) -
Method Summary
Modifier and Type Method Description voidset(double number)Update the command output with a floating-point number.voidset(ByteBuffer bytes)Update the command output with a sequence of bytes, ornull.Methods inherited from class io.lettuce.core.output.CommandOutput
complete, decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toString
-
Constructor Details
-
DoubleOutput
-
-
Method Details
-
set
Description copied from class:CommandOutputUpdate the command output with a sequence of bytes, ornull. ConcreteCommandOutputimplementations must override this method to decodebulk/bytes response values.- Overrides:
setin classCommandOutput<K,V,Double>- Parameters:
bytes- The command output, or null.
-
set
public void set(double number)Description copied from class:CommandOutputUpdate the command output with a floating-point number. ConcreteCommandOutputimplementations must override this method to decodedoubleresponse values.- Overrides:
setin classCommandOutput<K,V,Double>- Parameters:
number- The command output.
-