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