K
- the type of the safe keys.@NotThreadSafe public static interface PromptingKey.Controller<K extends PromptingKey<K>>
PromptingKey.View
implementations.Modifier and Type | Method and Description |
---|---|
K |
getKeyClone()
Returns a clone of the protected resource's key or
null if
no key has been set. |
URI |
getResource()
Returns the unique resource identifier (resource ID) of the
protected resource for which this controller is used.
|
void |
setKeyClone(K key)
Sets the protected resource's key to a clone of the given key or
resets it to null.
|
@CheckForNull K getKeyClone()
null
if
no key has been set.IllegalStateException
- if getting key is not legal in the
current state.URI getResource()
IllegalStateException
- if getting this property is not legal
in the current state.void setKeyClone(@CheckForNull K key)
key
- The nullable key to clone and use for accessing the
protected resource.IllegalStateException
- if setting key is not legal in the
current state.Copyright © 2012–2018 Schlichtherle IT Services. All rights reserved.