Class PageInfo
- java.lang.Object
-
- io.github.jeremylong.openvulnerability.client.ghsa.PageInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class PageInfo extends java.lang.Object implements java.io.SerializableInformation about pagination in a connection.type PageInfo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PageInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetEndCursor()When paginating forwards, the cursor to continue.java.lang.StringgetStartCursor()When paginating backwards, the cursor to continue.inthashCode()booleanisHasNextPage()When paginating forwards, are there more items?booleanisHasPreviousPage()When paginating backwards, are there more items?java.lang.StringtoString()
-
-
-
Method Detail
-
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
public java.lang.String getEndCursor()
When paginating forwards, the cursor to continue.- Returns:
- the cursor.
-
getStartCursor
public java.lang.String getStartCursor()
When paginating backwards, the cursor to continue.- Returns:
- the cursor.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-