Player.Commands
class Player.Commands
A set of commands.
Instances are immutable.
Summary
Nested types |
|---|
|
A builder for |
Constants |
|
|---|---|
const Player.Commands! |
An empty set of commands. |
Public functions |
|
|---|---|
Player.Commands.Builder! |
Returns a |
Boolean |
contains(@Player.Command command: Int)Returns whether the set of commands contains the specified |
Boolean |
containsAny(@Player.Command commands: IntArray!)Returns whether the set of commands contains at least one of the given |
Boolean |
|
java-static Player.Commands! |
@UnstableApiRestores a |
Int |
@Player.CommandReturns the |
Int |
hashCode() |
Int |
size()Returns the number of commands in this set. |
Bundle! |
Constants
Public functions
buildUpon
@UnstableApi
fun buildUpon(): Player.Commands.Builder!
Returns a Builder initialized with the values of this instance.
contains
fun contains(@Player.Command command: Int): Boolean
Returns whether the set of commands contains the specified Command.
containsAny
fun containsAny(@Player.Command commands: IntArray!): Boolean
Returns whether the set of commands contains at least one of the given commands.
fromBundle
@UnstableApi
java-static fun fromBundle(bundle: Bundle!): Player.Commands!
Restores a Commands from a Bundle.
get
@Player.Command
fun get(index: Int): Int
Returns the Command at the given index.
| Throws | |
|---|---|
java.lang.IndexOutOfBoundsException |
If index is outside the allowed range. |