Interface MutableMultiTokenHolder
- All Superinterfaces:
MultiTokenHolder
A
MutableMultiTokenHolder is a MultiTokenHolder whose
tokens can be added and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given token to the currentMutableMultiTokenHolderif the currentMutableMultiTokenHolderdoes not contain already the given token.voidremoveToken(String token) Removes the given token from the currentMutableMultiTokenHolderif the currentMutableMultiTokenHoldercontains the given token.voidRemoves all tokens from the currentMutableMultiTokenHolder.Methods inherited from interface MultiTokenHolder
getTokens
-
Method Details
-
addToken
Adds the given token to the currentMutableMultiTokenHolderif the currentMutableMultiTokenHolderdoes not contain already the given token.- Parameters:
token-- Throws:
RuntimeException- if the given token is null or blank
-
removeToken
Removes the given token from the currentMutableMultiTokenHolderif the currentMutableMultiTokenHoldercontains the given token.- Parameters:
token-
-
removeTokens
void removeTokens()Removes all tokens from the currentMutableMultiTokenHolder.
-