Back to Exoplayer

CreationTime (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/container/CreationTime.html

latest3.8 KB
Original Source

Package com.google.android.exoplayer2.container

Class CreationTime

  • java.lang.Object

    • com.google.android.exoplayer2.container.CreationTime
  • All Implemented Interfaces:Parcelable, Metadata.Entry


public final classCreationTimeextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Metadata.Entry](../metadata/Metadata.Entry.html "interface in com.google.android.exoplayer2.metadata")

Stores creation time.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface android.os.Parcelable

Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static Parcelable.Creator<CreationTime> | CREATOR | | | long | timestampMs | |

- 

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | CreationTime​(long timestampMs) | Creates an instance. |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | int | describeContents() | | | boolean | equals​(Object obj) | | | int | hashCode() | | | String | toString() | | | void | writeToParcel​(Parcel dest, int flags) | |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

- 

Methods inherited from interface com.google.android.exoplayer2.metadata.Metadata.Entry

getWrappedMetadataBytes, getWrappedMetadataFormat, populateMediaMetadata

Field Detail

- 

timestampMs

public final long timestampMs
- 

CREATOR

public static final[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html "class or interface in android.os")<[CreationTime](CreationTime.html "class in com.google.android.exoplayer2.container")> CREATOR

Constructor Detail

- 

CreationTime

public CreationTime​(long timestampMs)

Creates an instance. Parameters:timestampMs - The creation time UTC in milliseconds since the Unix epoch.

Method Detail

- 

equals

public boolean equals​(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)

Overrides:equals in class Object

- 

hashCode

public int hashCode()

Overrides:hashCode in class Object

- 

toString

public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()

Overrides:toString in class Object

- 

describeContents

public int describeContents()

Specified by:describeContents in interface Parcelable

- 

writeToParcel

public void writeToParcel​([Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")dest,
                          int flags)

Specified by:writeToParcel in interface Parcelable