Package com.google.android.exoplayer2
Class Player.Commands
- java.lang.Object
-
- com.google.android.exoplayer2.Player.Commands
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Player.Commands.Builder
A builder forPlayer.Commands
instances.
-
Field Summary
Fields Modifier and Type Field Description static Player.Commands
EMPTY
An empty set of commands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int command)
Returns whether the set of commands contains the specifiedPlayer.Command
.boolean
equals(Object obj)
int
get(int index)
Returns thePlayer.Command
at the given index.int
hashCode()
int
size()
Returns the number of commands in this set.
-
-
-
Field Detail
-
EMPTY
public static final Player.Commands EMPTY
An empty set of commands.
-
-
Method Detail
-
contains
public boolean contains(@Command int command)
Returns whether the set of commands contains the specifiedPlayer.Command
.
-
size
public int size()
Returns the number of commands in this set.
-
get
@Command public int get(int index)
Returns thePlayer.Command
at the given index.- Parameters:
index
- The index. Must be between 0 (inclusive) andsize()
(exclusive).- Returns:
- The
Player.Command
at the given index. - Throws:
IndexOutOfBoundsException
- If index is outside the allowed range.
-
-