Module spring.data.redis
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
FieldsModifier and TypeFieldDescriptionstatic final BitFieldSubCommands.BitFieldType16 bit signed Integerstatic final BitFieldSubCommands.BitFieldType32 bit signed Integerstatic final BitFieldSubCommands.BitFieldType64 bit signed Integerstatic final BitFieldSubCommands.BitFieldType8 bit signed Integerstatic final BitFieldSubCommands.BitFieldType16 bit unsigned Integerstatic final BitFieldSubCommands.BitFieldType32 bit unsigned Integerstatic final BitFieldSubCommands.BitFieldType64 bit unsigned Integerstatic final BitFieldSubCommands.BitFieldType8 bit unsigned Integer -
Method Summary
Modifier and TypeMethodDescriptionasString()Get the Redis Command representation.booleanintgetBits()Get the actual bits of the type.inthashCode()booleanisSigned()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.BitFieldTypeis 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
-