Record Class NuggetAdminQuery
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetAdminQuery
- Record Components:
offset- zero-based result offsetlimit- maximum number of returned recordsfilters- allowlisted filter clauses in schema-visible ordersorts- allowlisted sort clauses in schema-visible order with a final stable identity tie-breaker
public record NuggetAdminQuery(long offset, int limit, List<NuggetAdminQuery.Filter> filters, List<NuggetAdminQuery.Sort> sorts)
extends Record
Common bounded query model for public nugget administration collections.
The query uses enum fields rather than caller-provided object-property
names. Filters are exact-match public predicates. Sorts are public ordering
fields and always end with NuggetAdminField.STABLE_ID as a
deterministic final tie-breaker. Offset and limit are validated with
overflow-safe arithmetic. Instances are immutable and thread-safe.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPublic exact-match filter.static final recordPublic collection page metadata.static final recordPublic sort clause. -
Constructor Summary
ConstructorsConstructorDescriptionNuggetAdminQuery(long offset, int limit, List<NuggetAdminQuery.Filter> filters, List<NuggetAdminQuery.Sort> sorts) Creates an immutable query. -
Method Summary
Modifier and TypeMethodDescriptionstatic NuggetAdminQueryall()Returns the default query.final booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.intlimit()Returns the value of thelimitrecord component.longoffset()Returns the value of theoffsetrecord component.sorts()Returns the value of thesortsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NuggetAdminQuery
public NuggetAdminQuery(long offset, int limit, List<NuggetAdminQuery.Filter> filters, List<NuggetAdminQuery.Sort> sorts) Creates an immutable query.
-
-
Method Details
-
all
-
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. -
offset
-
limit
-
filters
-
sorts
-