Modifier and Type | Method and Description |
---|---|
T |
get()
Completes the matching chain returned the matched result
|
<TT> ValueKey.BeforeThen<T,TT> |
ifEq(ValueKey<TT> key)
Continues a matching chain: the subsequent then-branch will take effect if
the supplied "case" key equals to the selector key
|
T |
orNull()
Completes the matching chain returned the matched result
|
<TT> ValueKey.BeforeThen<T,TT> ifEq(ValueKey<TT> key)
TT
- type of the "case" keykey
- "case" key to compare with selector keyT get()
java.util.NoSuchElementException
- if no "case"-key matched the selector.T orNull()