public static class BitFieldArgs.Builder extends Object
Modifier and Type | Method and Description |
---|---|
static BitFieldArgs |
get(BitFieldArgs.BitFieldType bitFieldType,
int offset)
Adds a new
Get subcommand. |
static BitFieldArgs |
incrBy(BitFieldArgs.BitFieldType bitFieldType,
int offset,
long value)
Adds a new
IncrBy subcommand. |
static BitFieldArgs |
overflow(BitFieldArgs.OverflowType overflowType)
Adds a new
Overflow subcommand. |
static BitFieldArgs |
set(BitFieldArgs.BitFieldType bitFieldType,
int offset,
long value)
Adds a new
Set subcommand. |
public static BitFieldArgs get(BitFieldArgs.BitFieldType bitFieldType, int offset)
Get
subcommand.bitFieldType
- the bit field type, must not be null.offset
- bitfield offsetGet
subcommand for the given bitFieldType
and offset
.public static BitFieldArgs set(BitFieldArgs.BitFieldType bitFieldType, int offset, long value)
Set
subcommand.bitFieldType
- the bit field type, must not be null.offset
- bitfield offsetvalue
- the valueSet
subcommand for the given bitFieldType
, offset
and value
.public static BitFieldArgs incrBy(BitFieldArgs.BitFieldType bitFieldType, int offset, long value)
IncrBy
subcommand.bitFieldType
- the bit field type, must not be null.offset
- bitfield offsetvalue
- the valueIncrBy
subcommand for the given bitFieldType
, offset
and value
.public static BitFieldArgs overflow(BitFieldArgs.OverflowType overflowType)
Overflow
subcommand.overflowType
- type of overflow, must not be null.Overflow
subcommand for the given overflowType
.Copyright © 2016. All rights reserved.