Class BitFieldSubCommands.BitFieldType
java.lang.Object
org.springframework.data.redis.connection.BitFieldSubCommands.BitFieldType
- Enclosing class:
- BitFieldSubCommands
The actual Redis bitfield type representation for signed and unsigned integers used with
BitFieldSubCommands.BitFieldSubCommand
.- Since:
- 2.1
- Author:
- Christoph Strobl, Mark Paluch
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BitFieldSubCommands.BitFieldType
16 bit signed Integerstatic final BitFieldSubCommands.BitFieldType
32 bit signed Integerstatic final BitFieldSubCommands.BitFieldType
64 bit signed Integerstatic final BitFieldSubCommands.BitFieldType
8 bit signed Integerstatic final BitFieldSubCommands.BitFieldType
16 bit unsigned Integerstatic final BitFieldSubCommands.BitFieldType
32 bit unsigned Integerstatic final BitFieldSubCommands.BitFieldType
64 bit unsigned Integerstatic final BitFieldSubCommands.BitFieldType
8 bit unsigned Integer -
Method Summary
Modifier and TypeMethodDescriptionasString()
Get the Redis Command representation.boolean
int
getBits()
Get the actual bits of the type.int
hashCode()
boolean
isSigned()
signed
(int bits) Create new signedBitFieldSubCommands.BitFieldType
.toString()
unsigned
(int bits) Create new unsignedBitFieldSubCommands.BitFieldType
.
-
Field Details
-
INT_8
8 bit signed Integer -
INT_16
16 bit signed Integer -
INT_32
32 bit signed Integer -
INT_64
64 bit signed Integer -
UINT_8
8 bit unsigned Integer -
UINT_16
16 bit unsigned Integer -
UINT_32
32 bit unsigned Integer -
UINT_64
64 bit unsigned Integer
-
-
Method Details
-
signed
Create new signedBitFieldSubCommands.BitFieldType
.- Parameters:
bits
- must not be null.- Returns:
-
unsigned
Create new unsignedBitFieldSubCommands.BitFieldType
.- Parameters:
bits
- must not be null.- Returns:
-
isSigned
public boolean isSigned()- Returns:
- true if
BitFieldSubCommands.BitFieldType
is signed.
-
getBits
public int getBits()Get the actual bits of the type.- Returns:
- never null.
-
asString
Get the Redis Command representation.- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-