Class AlbumPositionFactory
- java.lang.Object
-
- com.google.photos.library.v1.util.AlbumPositionFactory
-
public final class AlbumPositionFactory extends java.lang.Object
Factory class to create differentAlbumPosition
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlbumPosition
createAfterEnrichmentItem(java.lang.String enrichmentItemId)
Creates anAlbumPosition
positioned after the provided enrichment item.static AlbumPosition
createAfterMediaItem(java.lang.String mediaItemId)
Creates anAlbumPosition
positioned after the provided media item.static AlbumPosition
createFirstInAlbum()
Creates anAlbumPosition
positioned at the start of the album.static AlbumPosition
createLastInAlbum()
Creates anAlbumPosition
positioned at the end of the album.
-
-
-
Method Detail
-
createFirstInAlbum
public static final AlbumPosition createFirstInAlbum()
Creates anAlbumPosition
positioned at the start of the album.
-
createLastInAlbum
public static final AlbumPosition createLastInAlbum()
Creates anAlbumPosition
positioned at the end of the album.- See Also:
AlbumPosition.PositionType.LAST_IN_ALBUM
-
createAfterMediaItem
public static final AlbumPosition createAfterMediaItem(java.lang.String mediaItemId)
Creates anAlbumPosition
positioned after the provided media item.- Throws:
java.lang.IllegalArgumentException
- Thrown if mediaItemId is null or empty.- See Also:
AlbumPosition.PositionType.AFTER_MEDIA_ITEM
-
createAfterEnrichmentItem
public static final AlbumPosition createAfterEnrichmentItem(java.lang.String enrichmentItemId)
Creates anAlbumPosition
positioned after the provided enrichment item.- Throws:
java.lang.IllegalArgumentException
- Thrown if enrichmentItemId is null or empty.- See Also:
AlbumPosition.PositionType.AFTER_ENRICHMENT_ITEM
-
-