Record Class CocoCampaignQuery
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.coco.CocoCampaignQuery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CocoCampaignQuerydefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intoffset()intpage()Returns the value of thepagerecord component.q()Returns the value of theqrecord component.intsize()Returns the value of thesizerecord component.sortBy()Returns the value of thesortByrecord component.sortDir()Returns the value of thesortDirrecord component.status()Returns the value of thestatusrecord component.suite()Returns the value of thesuiterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CocoCampaignQuery
public CocoCampaignQuery(String q, String status, String suite, int page, int size, String sortBy, String sortDir) Creates an instance of aCocoCampaignQueryrecord class.- Parameters:
q- the value for theqrecord componentstatus- the value for thestatusrecord componentsuite- the value for thesuiterecord componentpage- the value for thepagerecord componentsize- the value for thesizerecord componentsortBy- the value for thesortByrecord componentsortDir- the value for thesortDirrecord component
-
-
Method Details
-
defaults
-
offset
public int offset() -
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. -
q
Returns the value of theqrecord component.- Returns:
- the value of the
qrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
suite
Returns the value of thesuiterecord component.- Returns:
- the value of the
suiterecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
sortBy
Returns the value of thesortByrecord component.- Returns:
- the value of the
sortByrecord component
-
sortDir
Returns the value of thesortDirrecord component.- Returns:
- the value of the
sortDirrecord component
-