Class VersionListPage
-
- All Implemented Interfaces:
-
com.openai.core.Page
public final class VersionListPage implements Page<SkillVersion>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVersionListPage.BuilderA builder for VersionListPage.
-
Method Summary
Modifier and Type Method Description final List<SkillVersion>data()Delegates to SkillVersionList, but gracefully handles missing data. final Optional<Boolean>hasMore()Delegates to SkillVersionList, but gracefully handles missing data. List<SkillVersion>items()Returns the items in this page. BooleanhasNextPage()Returns whether there's another page after this one. final VersionListParamsnextPageParams()VersionListPagenextPage()Returns the page after this one by making another request. final AutoPager<SkillVersion>autoPager()final VersionListParamsparams()The parameters that were used to request this page. final SkillVersionListresponse()The response that this page was parsed from. final VersionListPage.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static VersionListPage.Builderbuilder()Returns a mutable builder for constructing an instance of VersionListPage. -
-
Method Detail
-
data
final List<SkillVersion> data()
Delegates to SkillVersionList, but gracefully handles missing data.
-
hasMore
final Optional<Boolean> hasMore()
Delegates to SkillVersionList, but gracefully handles missing data.
-
items
List<SkillVersion> items()
Returns the items in this page.
-
hasNextPage
Boolean hasNextPage()
Returns whether there's another page after this one.
The method generally doesn't make requests so the result depends entirely on the data in this page. If a significant amount of time has passed between requesting this page and calling this method, then the result could be stale.
-
nextPageParams
final VersionListParams nextPageParams()
-
nextPage
VersionListPage nextPage()
Returns the page after this one by making another request.
-
autoPager
final AutoPager<SkillVersion> autoPager()
-
params
final VersionListParams params()
The parameters that were used to request this page.
-
response
final SkillVersionList response()
The response that this page was parsed from.
-
toBuilder
final VersionListPage.Builder toBuilder()
-
builder
final static VersionListPage.Builder builder()
Returns a mutable builder for constructing an instance of VersionListPage.
The following fields are required:
.service() .params() .response()
-
-
-
-