Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2b6e0ec
authored
May 12, 2021
by
jaewan
Committed by
Oliver Woodman
May 12, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Implements Player.Events#equals()
It's convenient for testing. PiperOrigin-RevId: 373280130
parent
1da25f59
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
library/common/src/main/java/com/google/android/exoplayer2/Player.java
library/common/src/main/java/com/google/android/exoplayer2/Player.java
View file @
b2b6e0ec
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment