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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value) Creates a newBitFieldSubCommands.BitFieldSet.booleanThe actual sub commandlonggetValue()Get the value to set.inthashCode()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.BitFieldSubCommandThe actual sub command- Returns:
- never null.
-
getValue
public long getValue()Get the value to set.- Returns:
- never null.
-
equals
- Overrides:
equalsin classBitFieldSubCommands.AbstractBitFieldSubCommand
-
hashCode
public int hashCode()- Overrides:
hashCodein classBitFieldSubCommands.AbstractBitFieldSubCommand
-
toString
- Overrides:
toStringin classBitFieldSubCommands.AbstractBitFieldSubCommand
-