com.iheartradio.m3u8.data.TrackInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of open-m3u8 Show documentation
Show all versions of open-m3u8 Show documentation
An open source M3U8 playlist parser java library.
The newest version!
package com.iheartradio.m3u8.data;
import java.util.Objects;
public class TrackInfo {
public final float duration;
public final String title;
public TrackInfo(float duration, String title) {
this.duration = duration;
this.title = title;
}
@Override
public int hashCode() {
return Objects.hash(duration, title);
}
@Override
public boolean equals(Object o) {
if (!(o instanceof TrackInfo)) {
return false;
}
TrackInfo other = (TrackInfo) o;
return this.duration == other.duration &&
Objects.equals(this.title, other.title);
}
}