Record Class ConstraintPolicyListQuery
java.lang.Object
java.lang.Record
co.ankatech.ankasecure.keymanagement.query.ConstraintPolicyListQuery
- Record Components:
page- the zero-based page number;nullfor the server default (0)size- the page size;nullfor the server default (25)sort- sort criteria asproperty,ASC|DESC;nullfor the server default (name,ASC)
public record ConstraintPolicyListQuery(Integer page, Integer size, List<String> sort)
extends Record
The page of a constraint policy listing (
constraintPolicies().list).
Its components are exactly the query parameters of the listConstraintPolicies operation; a null
component sends nothing, so the server applies its default.
ConstraintPolicyListQuery.firstPage()
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintPolicyListQuery(Integer page, Integer size, List<String> sort) Canonical constructor; copies every list component. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ConstraintPolicyListQueryfinal inthashCode()Returns a hash code value for this object.page()Returns the value of thepagerecord component.size()Returns the value of thesizerecord component.sort()Returns the value of thesortrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConstraintPolicyListQuery
Canonical constructor; copies every list component.
-
-
Method Details
-
firstPage
- Returns:
- the first page with the server's defaults and no filter
-
withPage
- Parameters:
value- the newpage;nullclears it- Returns:
- a copy of this query with
pagereplaced
-
withSize
- Parameters:
value- the newsize;nullclears it- Returns:
- a copy of this query with
sizereplaced
-
withSort
- Parameters:
value- the newsort;nullclears it- Returns:
- a copy of this query with
sortreplaced
-
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. -
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. -
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). -
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
sort
Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-