Record Class PaginationQueryParameters
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.PaginationQueryParameters
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafter()
Returns the value of theafter
record component.before()
Returns the value of thebefore
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.limit()
Returns the value of thelimit
record component.static PaginationQueryParameters
none()
order()
Returns the value of theorder
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PaginationQueryParameters
public PaginationQueryParameters(Optional<Integer> limit, Optional<String> order, Optional<String> after, Optional<String> before) Creates an instance of aPaginationQueryParameters
record class.- Parameters:
limit
- the value for thelimit
record componentorder
- the value for theorder
record componentafter
- the value for theafter
record componentbefore
- the value for thebefore
record component
-
-
Method Details
-
none
-
newBuilder
-
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)
. -
limit
Returns the value of thelimit
record component.- Returns:
- the value of the
limit
record component
-
order
Returns the value of theorder
record component.- Returns:
- the value of the
order
record component
-
after
Returns the value of theafter
record component.- Returns:
- the value of the
after
record component
-
before
Returns the value of thebefore
record component.- Returns:
- the value of the
before
record component
-