Class BitFieldSubCommands
java.lang.Object
org.springframework.data.redis.connection.BitFieldSubCommands
- All Implemented Interfaces:
Iterable<BitFieldSubCommands.BitFieldSubCommand>
public class BitFieldSubCommands
extends Object
implements Iterable<BitFieldSubCommands.BitFieldSubCommand>
The actual
BITFIELD
command representation holding several BitFieldSubCommands.BitFieldSubCommand
s to execute.- Since:
- 2.1
- Author:
- Christoph Strobl, Qiang Lee, Yanam
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
TheGET
sub command used withBitFieldSubCommands
.static class
static class
TheINCRBY
sub command used withBitFieldSubCommands
.class
static class
TheSET
sub command used withBitFieldSubCommands
.static class
static interface
Sub command to be used as part ofBitFieldSubCommands
.static class
The actual Redis bitfield type representation for signed and unsigned integers used withBitFieldSubCommands.BitFieldSubCommand
.static class
Offset used inside aBitFieldSubCommands.BitFieldSubCommand
. -
Method Summary
Modifier and TypeMethodDescriptionstatic BitFieldSubCommands
create()
Creates a newBitFieldSubCommands
.static BitFieldSubCommands
create
(BitFieldSubCommands.BitFieldSubCommand... subCommands) Creates a newBitFieldSubCommands
with Multiple BitFieldSubCommand.boolean
protected BitFieldSubCommands
Create newBitFieldSubCommands
adding givenBitFieldSubCommands.BitFieldGet
to the sub commands.Obtain a newBitFieldSubCommands.BitFieldGetBuilder
for creating and adding aBitFieldSubCommands.BitFieldGet
sub command.Get theList
of sub commands.int
hashCode()
protected BitFieldSubCommands
Create newBitFieldSubCommands
adding givenBitFieldSubCommands.BitFieldIncrBy
to the sub commands.Obtain a newBitFieldSubCommands.BitFieldIncrByBuilder
for creating and adding aBitFieldSubCommands.BitFieldIncrBy
sub command.iterator()
protected BitFieldSubCommands
Create newBitFieldSubCommands
adding givenBitFieldSubCommands.BitFieldSet
to the sub commands.Obtain a newBitFieldSubCommands.BitFieldSetBuilder
for creating and adding aBitFieldSubCommands.BitFieldSet
sub command.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
create
Creates a newBitFieldSubCommands
.- Returns:
-
create
Creates a newBitFieldSubCommands
with Multiple BitFieldSubCommand.- Returns:
- Since:
- 2.5.2
-
get
Obtain a newBitFieldSubCommands.BitFieldGetBuilder
for creating and adding aBitFieldSubCommands.BitFieldGet
sub command.- Parameters:
type
- must not be null.- Returns:
-
get
Create newBitFieldSubCommands
adding givenBitFieldSubCommands.BitFieldGet
to the sub commands.- Parameters:
get
- must not be null.- Returns:
-
set
Obtain a newBitFieldSubCommands.BitFieldSetBuilder
for creating and adding aBitFieldSubCommands.BitFieldSet
sub command.- Parameters:
type
- must not be null.- Returns:
-
set
Create newBitFieldSubCommands
adding givenBitFieldSubCommands.BitFieldSet
to the sub commands.- Parameters:
set
- must not be null.- Returns:
-
incr
Obtain a newBitFieldSubCommands.BitFieldIncrByBuilder
for creating and adding aBitFieldSubCommands.BitFieldIncrBy
sub command.- Parameters:
type
- must not be null.- Returns:
-
incr
Create newBitFieldSubCommands
adding givenBitFieldSubCommands.BitFieldIncrBy
to the sub commands.- Parameters:
incrBy
- must not be null.- Returns:
-
getSubCommands
Get theList
of sub commands.- Returns:
- never null.
-
iterator
- Specified by:
iterator
in interfaceIterable<BitFieldSubCommands.BitFieldSubCommand>
-
equals
-
hashCode
public int hashCode() -
toString
-