Interface IMutableMultiTokenHolder
- All Superinterfaces:
IMultiTokenHolder
A
IMutableMultiTokenHolder is a IMultiTokenHolder whose
tokens can be added and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given token to the currentIMutableMultiTokenHolder.voidremoveToken(String token) Removes the token that equals the given token from the currentIMutableMultiTokenHolderif the currentIMutableMultiTokenHoldercontains such a token.voidRemoves all tokens from the currentIMutableMultiTokenHolder.Methods inherited from interface IMultiTokenHolder
getTokens
-
Method Details
-
addToken
Adds the given token to the currentIMutableMultiTokenHolder.- Parameters:
token-- Throws:
RuntimeException- if the given token is null or blank.
-
removeToken
Removes the token that equals the given token from the currentIMutableMultiTokenHolderif the currentIMutableMultiTokenHoldercontains such a token.- Parameters:
token-
-
removeTokens
void removeTokens()Removes all tokens from the currentIMutableMultiTokenHolder.
-