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
  • Constructor Details

    • BitfieldOperation

      public BitfieldOperation(BitfieldOperation.Type type, int offset, long value, boolean signed, int bits, BitfieldOperation.Overflow overflow)
      Creates an instance of a BitfieldOperation record class.
      Parameters:
      type - the value for the type record component
      offset - the value for the offset record component
      value - the value for the value record component
      signed - the value for the signed record component
      bits - the value for the bits record component
      overflow - the value for the overflow record component
  • Method Details

    • GET

      public static BitfieldOperation GET(byte[] encoding, byte[] offset)
    • 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

      public Long apply(AtomicReference<byte[]> valueRef)
    • apply

      public static List<Long> apply(List<BitfieldOperation> operations, AtomicReference<byte[]> value)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public BitfieldOperation.Type type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • offset

      public int offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component
    • value

      public long value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • signed

      public boolean signed()
      Returns the value of the signed record component.
      Returns:
      the value of the signed record component
    • bits

      public int bits()
      Returns the value of the bits record component.
      Returns:
      the value of the bits record component
    • overflow

      public BitfieldOperation.Overflow overflow()
      Returns the value of the overflow record component.
      Returns:
      the value of the overflow record component