public static class BitFieldSubCommands.BitFieldIncrBy extends BitFieldSubCommands.AbstractBitFieldSubCommand
INCRBY
sub command used with BitFieldSubCommands
.Modifier and Type | Class and Description |
---|---|
static class |
BitFieldSubCommands.BitFieldIncrBy.Overflow |
Constructor and Description |
---|
BitFieldIncrBy() |
Modifier and Type | Method and Description |
---|---|
static BitFieldSubCommands.BitFieldIncrBy |
create(BitFieldSubCommands.BitFieldType type,
BitFieldSubCommands.Offset offset,
long value)
Creates a new
BitFieldSubCommands.BitFieldIncrBy . |
static BitFieldSubCommands.BitFieldIncrBy |
create(BitFieldSubCommands.BitFieldType type,
BitFieldSubCommands.Offset offset,
long value,
BitFieldSubCommands.BitFieldIncrBy.Overflow overflow)
Creates a new
BitFieldSubCommands.BitFieldIncrBy . |
boolean |
equals(Object o) |
String |
getCommand()
The actual sub command
|
BitFieldSubCommands.BitFieldIncrBy.Overflow |
getOverflow()
Get the overflow to apply.
|
long |
getValue()
Get the increment value.
|
int |
hashCode() |
String |
toString() |
getOffset, getType
public static BitFieldSubCommands.BitFieldIncrBy create(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value)
BitFieldSubCommands.BitFieldIncrBy
.type
- must not be null.offset
- must not be null.value
- must not be null.public static BitFieldSubCommands.BitFieldIncrBy create(BitFieldSubCommands.BitFieldType type, BitFieldSubCommands.Offset offset, long value, @Nullable BitFieldSubCommands.BitFieldIncrBy.Overflow overflow)
BitFieldSubCommands.BitFieldIncrBy
.type
- must not be null.offset
- must not be null.value
- must not be null.overflow
- can be null to use redis defaults.public String getCommand()
BitFieldSubCommands.BitFieldSubCommand
public long getValue()
@Nullable public BitFieldSubCommands.BitFieldIncrBy.Overflow getOverflow()
public boolean equals(Object o)
equals
in class BitFieldSubCommands.AbstractBitFieldSubCommand
public int hashCode()
hashCode
in class BitFieldSubCommands.AbstractBitFieldSubCommand
public String toString()
toString
in class BitFieldSubCommands.AbstractBitFieldSubCommand
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.