Record Class TransactionController.OperationRequest

java.lang.Object
java.lang.Record
com.loomcache.springboot.controller.TransactionController.OperationRequest
Enclosing class:
TransactionController

public static record TransactionController.OperationRequest(@NotBlank(message="op required") String op, @NotBlank(message="structureName required") @Size(max=255) String structureName, @Size(max=1024) @Nullable String key, @Size(max=1048576) @Nullable String value) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    OperationRequest(@NotBlank(message="op required") String op, @NotBlank(message="structureName required") @Size(max=255) String structureName, @Size(max=1024) @Nullable String key, @Size(max=1048576) @Nullable String value)
    Creates an instance of a OperationRequest record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @Size(max=1024) @Nullable String
    key()
    Returns the value of the key record component.
    @NotBlank(message="op required") String
    op()
    Returns the value of the op record component.
    @NotBlank(message="structureName required") @Size(max=255) String
    Returns the value of the structureName record component.
    final String
    Returns a string representation of this record class.
    @Size(max=1048576) @Nullable String
    Returns the value of the value record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OperationRequest

      public OperationRequest(@NotBlank(message="op required") @NotBlank(message="op required") String op, @NotBlank(message="structureName required") @Size(max=255) @NotBlank(message="structureName required") @Size(max=255) String structureName, @Size(max=1024) @Size(max=1024) @Nullable String key, @Size(max=1048576) @Size(max=1048576) @Nullable String value)
      Creates an instance of a OperationRequest record class.
      Parameters:
      op - the value for the op record component
      structureName - the value for the structureName record component
      key - the value for the key record component
      value - the value for the value record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • op

      @NotBlank(message="op required") public @NotBlank(message="op required") String op()
      Returns the value of the op record component.
      Returns:
      the value of the op record component
    • structureName

      @NotBlank(message="structureName required") @Size(max=255) public @NotBlank(message="structureName required") @Size(max=255) String structureName()
      Returns the value of the structureName record component.
      Returns:
      the value of the structureName record component
    • key

      @Size(max=1024) public @Size(max=1024) @Nullable String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • value

      @Size(max=1048576) public @Size(max=1048576) @Nullable String value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component