Record Class TransactionController.OperationRequest
java.lang.Object
java.lang.Record
com.loomcache.springboot.controller.TransactionController.OperationRequest
- Enclosing class:
TransactionController
-
Constructor Summary
ConstructorsConstructorDescriptionOperationRequest(@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 aOperationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Size(max=1024) @Nullable Stringkey()Returns the value of thekeyrecord component.@NotBlank(message="op required") Stringop()Returns the value of theoprecord component.@NotBlank(message="structureName required") @Size(max=255) StringReturns the value of thestructureNamerecord component.final StringtoString()Returns a string representation of this record class.@Size(max=1048576) @Nullable Stringvalue()Returns the value of thevaluerecord component.
-
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 aOperationRequestrecord class.- Parameters:
op- the value for theoprecord componentstructureName- the value for thestructureNamerecord componentkey- the value for thekeyrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
structureName
@NotBlank(message="structureName required") @Size(max=255) public @NotBlank(message="structureName required") @Size(max=255) String structureName()Returns the value of thestructureNamerecord component.- Returns:
- the value of the
structureNamerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-