public final class PageInfo extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the YouTube Data API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
PageInfo() |
Modifier and Type | Method and Description |
---|---|
PageInfo |
clone() |
Integer |
getResultsPerPage()
The number of results included in the API response.
|
Integer |
getTotalResults()
The total number of results in the result set.
|
PageInfo |
set(String fieldName,
Object value) |
PageInfo |
setResultsPerPage(Integer resultsPerPage)
The number of results included in the API response.
|
PageInfo |
setTotalResults(Integer totalResults)
The total number of results in the result set.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Integer getResultsPerPage()
null
for nonepublic PageInfo setResultsPerPage(Integer resultsPerPage)
resultsPerPage
- resultsPerPage or null
for nonepublic Integer getTotalResults()
null
for nonepublic PageInfo setTotalResults(Integer totalResults)
totalResults
- totalResults or null
for nonepublic PageInfo set(String fieldName, Object value)
set
in class GenericJson
public PageInfo clone()
clone
in class GenericJson