docs/doc/reference/com/google/android/exoplayer2/offline/SegmentDownloader.Segment.html
Package com.google.android.exoplayer2.offline
All Implemented Interfaces:Comparable<SegmentDownloader.Segment>Enclosing class:SegmentDownloader<M extends FilterableManifest<M>>
protected static classSegmentDownloader.Segmentextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Comparable](https://developer.android.com/reference/java/lang/Comparable.html "class or interface in java.lang")<[SegmentDownloader.Segment](SegmentDownloader.Segment.html "class in com.google.android.exoplayer2.offline")>
Smallest unit of content to be downloaded.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| DataSpec | dataSpec |
The DataSpec of the segment.
|
| long | startTimeUs |
The start time of the segment in microseconds.
|
Constructors | Constructor | Description |
| --- | --- |
| Segment(long startTimeUs, DataSpec dataSpec) |
Constructs a Segment.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int | compareTo(SegmentDownloader.Segment other) | |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final long startTimeUs
The start time of the segment in microseconds.
-
public final[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec
The DataSpec of the segment.
-
public Segment(long startTimeUs,[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec)
Constructs a Segment.
-
public int compareTo([SegmentDownloader.Segment](SegmentDownloader.Segment.html "class in com.google.android.exoplayer2.offline")other)
Specified by:compareTo in interface Comparable<SegmentDownloader.Segment>