Class BitFieldSubCommands.BitFieldSet
java.lang.Object
org.springframework.data.redis.connection.BitFieldSubCommands.AbstractBitFieldSubCommand
org.springframework.data.redis.connection.BitFieldSubCommands.BitFieldSet
- All Implemented Interfaces:
BitFieldSubCommands.BitFieldSubCommand
- Enclosing class:
- BitFieldSubCommands
public static class BitFieldSubCommands.BitFieldSet
extends BitFieldSubCommands.AbstractBitFieldSubCommand
The
SET
sub command used with BitFieldSubCommands
.- Since:
- 2.1
- Author:
- Christoph Strobl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value) Creates a newBitFieldSubCommands.BitFieldSet
.boolean
The actual sub commandlong
getValue()
Get the value to set.int
hashCode()
toString()
Methods inherited from class org.springframework.data.redis.connection.BitFieldSubCommands.AbstractBitFieldSubCommand
getOffset, getType
-
Constructor Details
-
BitFieldSet
public BitFieldSet()
-
-
Method Details
-
create
public static BitFieldSubCommands.BitFieldSet create(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value) Creates a newBitFieldSubCommands.BitFieldSet
.- Parameters:
type
- must not be null.offset
- must not be null.value
- must not be null.- Returns:
- Since:
- 2.5.2
-
getCommand
Description copied from interface:BitFieldSubCommands.BitFieldSubCommand
The actual sub command- Returns:
- never null.
-
getValue
public long getValue()Get the value to set.- Returns:
- never null.
-
equals
- Overrides:
equals
in classBitFieldSubCommands.AbstractBitFieldSubCommand
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBitFieldSubCommands.AbstractBitFieldSubCommand
-
toString
- Overrides:
toString
in classBitFieldSubCommands.AbstractBitFieldSubCommand
-