All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.iheartradio.m3u8.data.TrackInfo Maven / Gradle / Ivy

There is a newer version: 0.2.6
Show 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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy