Class BitFieldSubCommands.BitFieldIncrBy
java.lang.Object
org.springframework.data.redis.connection.BitFieldSubCommands.AbstractBitFieldSubCommand
org.springframework.data.redis.connection.BitFieldSubCommands.BitFieldIncrBy
- All Implemented Interfaces:
- BitFieldSubCommands.BitFieldSubCommand
- Enclosing class:
- BitFieldSubCommands
public static class BitFieldSubCommands.BitFieldIncrBy
extends BitFieldSubCommands.AbstractBitFieldSubCommand
The 
INCRBY sub command used with BitFieldSubCommands.- Since:
- 2.1
- Author:
- Christoph Strobl
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value) Creates a newBitFieldSubCommands.BitFieldIncrBy.create(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value, BitFieldSubCommands.BitFieldIncrBy.Overflow overflow) Creates a newBitFieldSubCommands.BitFieldIncrBy.booleanThe actual sub commandGet the overflow to apply.longgetValue()Get the increment value.inthashCode()toString()Methods inherited from class org.springframework.data.redis.connection.BitFieldSubCommands.AbstractBitFieldSubCommandgetOffset, getType
- 
Constructor Details- 
BitFieldIncrBypublic BitFieldIncrBy()
 
- 
- 
Method Details- 
createpublic static BitFieldSubCommands.BitFieldIncrBy create(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value) Creates a newBitFieldSubCommands.BitFieldIncrBy.- Parameters:
- type- must not be null.
- offset- must not be null.
- value- must not be null.
- Returns:
- Since:
- 2.5.2
 
- 
createpublic static BitFieldSubCommands.BitFieldIncrBy create(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value, @Nullable BitFieldSubCommands.BitFieldIncrBy.Overflow overflow) Creates a newBitFieldSubCommands.BitFieldIncrBy.- Parameters:
- type- must not be null.
- offset- must not be null.
- value- must not be null.
- overflow- can be null to use redis defaults.
- Returns:
- Since:
- 2.5.2
 
- 
getCommandDescription copied from interface:BitFieldSubCommands.BitFieldSubCommandThe actual sub command- Returns:
- never null.
 
- 
getValuepublic long getValue()Get the increment value.- Returns:
- never null.
 
- 
getOverflowGet the overflow to apply. Can be null to use redis defaults.- Returns:
- can be null.
 
- 
equals- Overrides:
- equalsin class- BitFieldSubCommands.AbstractBitFieldSubCommand
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- BitFieldSubCommands.AbstractBitFieldSubCommand
 
- 
toString- Overrides:
- toStringin class- BitFieldSubCommands.AbstractBitFieldSubCommand
 
 
-