java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.gql.PageInfo
public record PageInfo(String startCursor, String endCursor, Boolean hasNextPage, Boolean hasPreviousPage)
extends Record
This type is unstable;
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theendCursor
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.Returns the value of thehasNextPage
record component.Returns the value of thehasPreviousPage
record component.Returns the value of thestartCursor
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PageInfo
Creates an instance of aPageInfo
record class.- Parameters:
startCursor
- the value for thestartCursor
record componentendCursor
- the value for theendCursor
record componenthasNextPage
- the value for thehasNextPage
record componenthasPreviousPage
- the value for thehasPreviousPage
record component
-
-
Method Details
-
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)
. -
startCursor
Returns the value of thestartCursor
record component.- Returns:
- the value of the
startCursor
record component
-
endCursor
Returns the value of theendCursor
record component.- Returns:
- the value of the
endCursor
record component
-
hasNextPage
Returns the value of thehasNextPage
record component.- Returns:
- the value of the
hasNextPage
record component
-
hasPreviousPage
Returns the value of thehasPreviousPage
record component.- Returns:
- the value of the
hasPreviousPage
record component
-