public class InputEvent extends QApiType implements QApiUnion
QApiUnionDescriptor{name=InputEvent, discriminator=null, data={key=InputKeyEvent, btn=InputBtnEvent, rel=InputMoveEvent, abs=InputMoveEvent}, innerTypes=null, fields=null, discriminatorField=null}
Modifier and Type | Class and Description |
---|---|
static class |
InputEvent.Discriminator |
Modifier and Type | Field and Description |
---|---|
InputMoveEvent |
abs |
InputBtnEvent |
btn |
InputKeyEvent |
key |
InputMoveEvent |
rel |
InputEvent.Discriminator |
type |
Constructor and Description |
---|
InputEvent() |
Modifier and Type | Method and Description |
---|---|
static InputEvent |
abs(InputMoveEvent abs) |
static InputEvent |
btn(InputBtnEvent btn) |
Object |
getFieldByName(String name) |
List<String> |
getFieldNames() |
InputEvent.Discriminator |
getType() |
boolean |
isValidUnion()
Returns true if this is a valid union.
|
static InputEvent |
key(InputKeyEvent key) |
static InputEvent |
rel(InputMoveEvent rel) |
toString
@Nonnull public InputEvent.Discriminator type
@CheckForNull public InputKeyEvent key
@CheckForNull public InputBtnEvent btn
@CheckForNull public InputMoveEvent rel
@CheckForNull public InputMoveEvent abs
public InputEvent()
@Nonnull public final InputEvent.Discriminator getType()
@Nonnull public static InputEvent key(@Nonnull InputKeyEvent key)
@Nonnull public static InputEvent btn(@Nonnull InputBtnEvent btn)
@Nonnull public static InputEvent rel(@Nonnull InputMoveEvent rel)
@Nonnull public static InputEvent abs(@Nonnull InputMoveEvent abs)
public List<String> getFieldNames()
getFieldNames
in class QApiType
public Object getFieldByName(@Nonnull String name) throws NoSuchFieldException
getFieldByName
in class QApiType
NoSuchFieldException
public boolean isValidUnion()
QApiUnion
isValidUnion
in interface QApiUnion