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
Nested Classes -
Constructor Summary
Constructors -
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.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.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.BitFieldSubCommandThe 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:
equalsin classBitFieldSubCommands.AbstractBitFieldSubCommand
-
hashCode
public int hashCode()- Overrides:
hashCodein classBitFieldSubCommands.AbstractBitFieldSubCommand
-
toString
- Overrides:
toStringin classBitFieldSubCommands.AbstractBitFieldSubCommand
-