public final class MediaCollectionPage<T>
extends java.lang.Object
Media
objects of a specific
type.
Note: each collection contains objects of one Media.Type
.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getAvailable()
Gets the total number of available
Media items within the
MediaCollectionPage . |
java.util.List<Media> |
getItems()
Gets the list of
Media items from the current page of the collection. |
MediaCollectionPageRequest<T> |
getNextPageRequest()
Gets the
MediaCollectionPageRequest for requesting the next page of the
MediaCollectionPage . |
int |
getOffsetCount()
Gets the collection offset count for the current page of the
MediaCollectionPage . |
MediaCollectionPageRequest<T> |
getPreviousPageRequest()
Gets the
MediaCollectionPageRequest for requesting the previous page of the
MediaCollectionPage . |
Media.Type |
getType()
|
int |
hashCode() |
public Media.Type getType()
Media.Type
public int getAvailable()
Media
items within the
MediaCollectionPage
.public int getOffsetCount()
MediaCollectionPage
.
For the first page of results, the offset count is 0. Following any call to
getNextPageRequest()
, the offset count will be greater than 0.
public MediaCollectionPageRequest<T> getNextPageRequest()
MediaCollectionPageRequest
for requesting the next page of the
MediaCollectionPage
.MediaCollectionPageRequest
(can be null if next page unavailable)public MediaCollectionPageRequest<T> getPreviousPageRequest()
MediaCollectionPageRequest
for requesting the previous page of the
MediaCollectionPage
.MediaCollectionPageRequest
(can be null if previous page unavailable)public java.util.List<Media> getItems()
Media
items from the current page of the collection. The type of
each object in the list depends on the MediaCollectionPage
.
Note: if a collection is empty, the items attribute is not present and this method will
return empty
.
Media
objects (could be empty
)public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object