Record Class BitfieldOperation
java.lang.Object
java.lang.Record
org.infinispan.server.resp.commands.bitmap.BitfieldOperation
@ProtoTypeId(6133)
public record BitfieldOperation(BitfieldOperation.Type type, int offset, long value, boolean signed, int bits, BitfieldOperation.Overflow overflow)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionBitfieldOperation(BitfieldOperation.Type type, int offset, long value, boolean signed, int bits, BitfieldOperation.Overflow overflow) Creates an instance of aBitfieldOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(AtomicReference<byte[]> valueRef) apply(List<BitfieldOperation> operations, AtomicReference<byte[]> value) intbits()Returns the value of thebitsrecord component.final booleanIndicates whether some other object is "equal to" this one.static BitfieldOperationGET(byte[] encoding, byte[] offset) final inthashCode()Returns a hash code value for this object.static BitfieldOperationINCRBY(byte[] encoding, byte[] offset, byte[] increment, BitfieldOperation.Overflow overflow) intoffset()Returns the value of theoffsetrecord component.overflow()Returns the value of theoverflowrecord component.static BitfieldOperationSET(byte[] encoding, byte[] offset, byte[] value, BitfieldOperation.Overflow overflow) booleansigned()Returns the value of thesignedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
BitfieldOperation
public BitfieldOperation(BitfieldOperation.Type type, int offset, long value, boolean signed, int bits, BitfieldOperation.Overflow overflow) Creates an instance of aBitfieldOperationrecord class.- Parameters:
type- the value for thetyperecord componentoffset- the value for theoffsetrecord componentvalue- the value for thevaluerecord componentsigned- the value for thesignedrecord componentbits- the value for thebitsrecord componentoverflow- the value for theoverflowrecord component
-
-
Method Details
-
GET
-
SET
public static BitfieldOperation SET(byte[] encoding, byte[] offset, byte[] value, BitfieldOperation.Overflow overflow) -
INCRBY
public static BitfieldOperation INCRBY(byte[] encoding, byte[] offset, byte[] increment, BitfieldOperation.Overflow overflow) -
apply
-
apply
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
signed
public boolean signed()Returns the value of thesignedrecord component.- Returns:
- the value of the
signedrecord component
-
bits
public int bits()Returns the value of thebitsrecord component.- Returns:
- the value of the
bitsrecord component
-
overflow
Returns the value of theoverflowrecord component.- Returns:
- the value of the
overflowrecord component
-