Class PageInfo
java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.PageInfo
- All Implemented Interfaces:
Serializable
Information about pagination in a connection.
type PageInfo
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe cursor to continue when paginating forwards.private booleanWhether there are more pages when paginating forwards.private booleanWhether there are previous pages when paginating backwards.private static final longSerialization version UID.private StringThe cursor to continue when paginating backwards. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
hasNextPage
private boolean hasNextPageWhether there are more pages when paginating forwards. -
hasPreviousPage
private boolean hasPreviousPageWhether there are previous pages when paginating backwards. -
endCursor
The cursor to continue when paginating forwards. -
startCursor
The cursor to continue when paginating backwards.
-
-
Constructor Details
-
PageInfo
public PageInfo()
-
-
Method Details
-
isHasNextPage
public boolean isHasNextPage()When paginating forwards, are there more items?- Returns:
trueif more pages exist; otherwisefalse.
-
isHasPreviousPage
public boolean isHasPreviousPage()When paginating backwards, are there more items?- Returns:
trueif previous pages exist; otherwisefalse.
-
getEndCursor
When paginating forwards, the cursor to continue.- Returns:
- the cursor.
-
getStartCursor
When paginating backwards, the cursor to continue.- Returns:
- the cursor.
-
toString
-
equals
-
hashCode
public int hashCode()
-