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 classPlayer.Commands.BuilderA builder forPlayer.Commandsinstances.
-
Field Summary
Fields Modifier and Type Field Description static Player.CommandsEMPTYAn empty set of commands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(int command)Returns whether the set of commands contains the specifiedPlayer.Command.booleanequals(Object obj)intget(int index)Returns thePlayer.Commandat the given index.inthashCode()intsize()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.Commandat the given index.- Parameters:
index- The index. Must be between 0 (inclusive) andsize()(exclusive).- Returns:
- The
Player.Commandat the given index. - Throws:
IndexOutOfBoundsException- If index is outside the allowed range.
-
-