java.lang.Object
io.lettuce.core.BitFieldArgs.Builder
- Enclosing class:
- BitFieldArgs
public static class BitFieldArgs.Builder extends Object
Builder entry points for
BitFieldArgs.-
Method Summary
Modifier and Type Method Description static BitFieldArgsget(BitFieldArgs.BitFieldType bitFieldType, int offset)Create a newGETsubcommand.static BitFieldArgsget(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset)Create a newGETsubcommand.static BitFieldArgsincrBy(BitFieldArgs.BitFieldType bitFieldType, int offset, long value)Create a newINCRBYsubcommand.static BitFieldArgsincrBy(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset, long value)Create a newINCRBYsubcommand.static BitFieldArgsoverflow(BitFieldArgs.OverflowType overflowType)Adds a newOVERFLOWsubcommand.static BitFieldArgsset(BitFieldArgs.BitFieldType bitFieldType, int offset, long value)Create a newSETsubcommand.static BitFieldArgsset(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset, long value)Create a newSETsubcommand.
-
Method Details
-
get
Create a newGETsubcommand.- Parameters:
bitFieldType- the bit field type, must not benull.offset- bitfield offset- Returns:
- a new
GETsubcommand for the givenbitFieldTypeandoffset.
-
get
Create a newGETsubcommand.- Parameters:
bitFieldType- the bit field type, must not benull.offset- bitfield offset, must not benull.- Returns:
- a new
GETsubcommand for the givenbitFieldTypeandoffset. - Since:
- 4.3
-
set
Create a newSETsubcommand.- Parameters:
bitFieldType- the bit field type, must not benull.offset- bitfield offsetvalue- the value- Returns:
- a new
SETsubcommand for the givenbitFieldType,offsetandvalue.
-
set
public static BitFieldArgs set(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset, long value)Create a newSETsubcommand.- Parameters:
bitFieldType- the bit field type, must not benull.offset- bitfield offset, must not benull.value- the value- Returns:
- a new
SETsubcommand for the givenbitFieldType,offsetandvalue. - Since:
- 4.3
-
incrBy
Create a newINCRBYsubcommand.- Parameters:
bitFieldType- the bit field type, must not benull.offset- bitfield offsetvalue- the value- Returns:
- a new
INCRBYsubcommand for the givenbitFieldType,offsetandvalue.
-
incrBy
public static BitFieldArgs incrBy(BitFieldArgs.BitFieldType bitFieldType, BitFieldArgs.Offset offset, long value)Create a newINCRBYsubcommand.- Parameters:
bitFieldType- the bit field type, must not benull.offset- bitfield offset, must not benull.value- the value- Returns:
- a new
INCRBYsubcommand for the givenbitFieldType,offsetandvalue. - Since:
- 4.3
-
overflow
Adds a newOVERFLOWsubcommand.- Parameters:
overflowType- type of overflow, must not benull.- Returns:
- a new
OVERFLOWsubcommand for the givenoverflowType.
-