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 Summary
-
Constructor Summary
-
Method Summary
Modifier 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
.boolean
The actual sub commandGet the overflow to apply.long
getValue()
Get the increment value.int
hashCode()
toString()
Methods inherited from class org.springframework.data.redis.connection.BitFieldSubCommands.AbstractBitFieldSubCommand
getOffset, getType
-
Constructor Details
-
BitFieldIncrBy
public BitFieldIncrBy()
-
-
Method Details
-
create
public 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
-
create
public 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
-
getCommand
Description copied from interface:BitFieldSubCommands.BitFieldSubCommand
The actual sub command- Returns:
- never null.
-
getValue
public long getValue()Get the increment value.- Returns:
- never null.
-
getOverflow
Get the overflow to apply. Can be null to use redis defaults.- Returns:
- can be null.
-
equals
- Overrides:
equals
in classBitFieldSubCommands.AbstractBitFieldSubCommand
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBitFieldSubCommands.AbstractBitFieldSubCommand
-
toString
- Overrides:
toString
in classBitFieldSubCommands.AbstractBitFieldSubCommand
-