Commit b2b6e0ec by jaewan Committed by Oliver Woodman

Implements Player.Events#equals()

It's convenient for testing.

PiperOrigin-RevId: 373280130
parent 1da25f59
...@@ -404,6 +404,23 @@ public interface Player { ...@@ -404,6 +404,23 @@ public interface Player {
public int get(int index) { public int get(int index) {
return flags.get(index); return flags.get(index);
} }
@Override
public int hashCode() {
return flags.hashCode();
}
@Override
public boolean equals(@Nullable Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof Events)) {
return false;
}
Events other = (Events) obj;
return flags.equals(other.flags);
}
} }
/** Position info describing a playback position involved in a discontinuity. */ /** Position info describing a playback position involved in a discontinuity. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment