com.iheartradio.m3u8.data.Resolution 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 Resolution {
public final int width;
public final int height;
public Resolution(int width, int height) {
this.width = width;
this.height = height;
}
@Override
public int hashCode() {
return Objects.hash(height, width);
}
@Override
public boolean equals(Object o) {
if (!(o instanceof Resolution)) {
return false;
}
Resolution other = (Resolution) o;
return width == other.width &&
height == other.height;
}
}