Interface IFluentMutableOptionalTokenHolder<H extends IFluentMutableOptionalTokenHolder<H>>
- Type Parameters:
H- is the type of aIFluentMutableOptionalTokenHolder.
- All Superinterfaces:
IOptionalTokenHolder
public interface IFluentMutableOptionalTokenHolder<H extends IFluentMutableOptionalTokenHolder<H>>
extends IOptionalTokenHolder
A
IFluentMutableOptionalTokenHolder is a IOptionalTokenHolder
whose token can be set and removed programmatically and fluently.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the token of the currentIFluentMutableOptionalTokenHolder.Sets the token of the currentIFluentMutableOptionalTokenHolder.Methods inherited from interface IOptionalTokenHolder
getToken, hasToken, hasToken
-
Method Details
-
removeToken
void removeToken()Removes the token of the currentIFluentMutableOptionalTokenHolder. -
setToken
Sets the token of the currentIFluentMutableOptionalTokenHolder.- Parameters:
token-- Returns:
- the current
IFluentMutableOptionalTokenHolder. - Throws:
RuntimeException- if the given token is null.RuntimeException- if the given token is blank.
-