public static final class KeyReleased.Builder
extends java.lang.Object
KeyReleased
.
Builders are created by invoking KeyReleased.newBuilder(KeyCode)
. Each of the setter methods
modifies the state of the builder and returns the same instance. Builders are not thread-safe
and should not be used concurrently from multiple threads without external synchronization.
Modifier and Type | Method and Description |
---|---|
KeyReleased |
build()
Returns a new
KeyReleased instance built from the current state of this builder. |
KeyReleased.Builder |
keyModifiers(KeyModifiers keyModifiers)
Sets the keyboard modifiers applied.
|
public KeyReleased.Builder keyModifiers(KeyModifiers keyModifiers)
keyModifiers
- the keyboard modifierspublic KeyReleased build()
KeyReleased
instance built from the current state of this builder.KeyReleased
instance