public final class DefaultThumbnailDocument extends java.lang.Object implements ThumbnailDocument
ThumbnailDocument
used in the Thumbnail plugin.Modifier and Type | Class and Description |
---|---|
static class |
DefaultThumbnailDocument.StartTimeComparator
A
Comparator used to sort TimedThumbnail s based on their start time |
EMPTY
Constructor and Description |
---|
DefaultThumbnailDocument(java.util.List<TimedThumbnail> timedThumbnailList,
TimedThumbnailFilter timedThumbnailFilter)
Instantiate a DefaultThumbnailDocument given a list of
TimedThumbnail and a TimedThumbnailFilter . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
TimedThumbnail |
get(long timeInMillis)
Gets the
TimedThumbnail given the Video's playhead position |
java.util.List<TimedThumbnail> |
getAll() |
int |
hashCode() |
public DefaultThumbnailDocument(@NonNull java.util.List<TimedThumbnail> timedThumbnailList, @NonNull TimedThumbnailFilter timedThumbnailFilter)
TimedThumbnail
and a TimedThumbnailFilter
.
To avoid filtering such a list, set TimedThumbnailFilter.NO_FILTER
timedThumbnailList
- list of TimedThumbnail
timedThumbnailFilter
- the TimedThumbnailFilter
@NonNull public TimedThumbnail get(long timeInMillis)
ThumbnailDocument
TimedThumbnail
given the Video's playhead positionget
in interface ThumbnailDocument
timeInMillis
- the video playhead positionTimedThumbnail
or TimedThumbnail.EMPTY
if not found@NonNull public java.util.List<TimedThumbnail> getAll()
getAll
in interface ThumbnailDocument
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object