public class VideoMetadata extends MediaMetadata
Modifier and Type | Class and Description |
---|---|
static class |
VideoMetadata.Builder
Builder for
VideoMetadata . |
Modifier and Type | Field and Description |
---|---|
protected Long |
duration |
dimensions, location, timeTaken
Constructor and Description |
---|
VideoMetadata()
Metadata for a video.
|
VideoMetadata(Dimensions dimensions,
GpsCoordinates location,
Date timeTaken,
Long duration)
Metadata for a video.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Dimensions |
getDimensions()
Dimension of the photo/video.
|
Long |
getDuration()
The duration of the video in milliseconds.
|
GpsCoordinates |
getLocation()
The GPS coordinate of the photo/video.
|
Date |
getTimeTaken()
The timestamp when the photo/video is taken.
|
int |
hashCode() |
static VideoMetadata.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final Long duration
public VideoMetadata(Dimensions dimensions, GpsCoordinates location, Date timeTaken, Long duration)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
dimensions
- Dimension of the photo/video.location
- The GPS coordinate of the photo/video.timeTaken
- The timestamp when the photo/video is taken.duration
- The duration of the video in milliseconds.public VideoMetadata()
The default values for unset fields will be used.
public Dimensions getDimensions()
getDimensions
in class MediaMetadata
null
if not present.public GpsCoordinates getLocation()
getLocation
in class MediaMetadata
null
if not present.public Date getTimeTaken()
getTimeTaken
in class MediaMetadata
null
if not present.public Long getDuration()
null
if not present.public static VideoMetadata.Builder newBuilder()
public int hashCode()
hashCode
in class MediaMetadata
public boolean equals(Object obj)
equals
in class MediaMetadata
public String toString()
toString
in class MediaMetadata
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class MediaMetadata