Record Class QueryController.QueryRequest
java.lang.Object
java.lang.Record
com.loomcache.springboot.controller.QueryController.QueryRequest
- Enclosing class:
QueryController
public static record QueryController.QueryRequest(@NotBlank(message="mapName required") @Size(max=255,message="mapName is too long (max 255 characters)") String mapName, @Min(value=1L,message="limit must be >= 1") @Max(value=1000L,message="limit must be <= 1000") @Nullable Integer limit)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionQueryRequest(@NotBlank(message="mapName required") @Size(max=255,message="mapName is too long (max 255 characters)") String mapName, @Min(value=1L,message="limit must be >= 1") @Max(value=1000L,message="limit must be <= 1000") @Nullable Integer limit) Creates an instance of aQueryRequestrecord 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.@Min(value=1L,message="limit must be >= 1") @Max(value=1000L,message="limit must be <= 1000") @Nullable Integerlimit()Returns the value of thelimitrecord component.@NotBlank(message="mapName required") @Size(max=255,message="mapName is too long (max 255 characters)") StringmapName()Returns the value of themapNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryRequest
public QueryRequest(@NotBlank(message="mapName required") @Size(max=255,message="mapName is too long (max 255 characters)") @NotBlank(message="mapName required") @Size(max=255,message="mapName is too long (max 255 characters)") String mapName, @Min(value=1L,message="limit must be >= 1") @Max(value=1000L,message="limit must be <= 1000") @Min(value=1L,message="limit must be >= 1") @Max(value=1000L,message="limit must be <= 1000") @Nullable Integer limit) Creates an instance of aQueryRequestrecord class.- Parameters:
mapName- the value for themapNamerecord componentlimit- the value for thelimitrecord 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). -
mapName
@NotBlank(message="mapName required") @Size(max=255, message="mapName is too long (max 255 characters)") public @NotBlank(message="mapName required") @Size(max=255,message="mapName is too long (max 255 characters)") String mapName()Returns the value of themapNamerecord component.- Returns:
- the value of the
mapNamerecord component
-
limit
@Min(value=1L, message="limit must be >= 1") @Max(value=1000L, message="limit must be <= 1000") public @Min(value=1L,message="limit must be >= 1") @Max(value=1000L,message="limit must be <= 1000") @Nullable Integer limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-