AnalyticsListener.Events, Player.Eventspublic class MutableFlags extends Object
Intended for usages where the number of flags may exceed 32 and can no longer be represented by an IntDef.
| Constructor | Description |
|---|---|
MutableFlags() |
Creates the set of flags.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int flag) |
Adds a flag to the set.
|
void |
clear() |
Clears all previously set flags.
|
boolean |
contains(int flag) |
Returns whether the set contains the given flag.
|
boolean |
containsAny(int... flags) |
Returns whether the set contains at least one of the given flags.
|
boolean |
equals(Object o) |
|
int |
get(int index) |
Returns the flag at the given index.
|
int |
hashCode() |
|
int |
size() |
Returns the number of flags in this set.
|
public void clear()
public void add(int flag)
flag - The flag to add.public boolean contains(int flag)
flag - The flag.public boolean containsAny(int... flags)
flags - The flags.public int size()
public int get(int index)
index - The index. Must be between 0 (inclusive) and size() (exclusive).IllegalArgumentException - If index is outside the allowed range.