Interface IFluentMutableMultiTagHolder<H extends IFluentMutableMultiTagHolder<H>>
- Type Parameters:
H- is the type of aIFluentMutableMultiTagHolder.
- All Superinterfaces:
IMultiTagHolder
public interface IFluentMutableMultiTagHolder<H extends IFluentMutableMultiTagHolder<H>>
extends IMultiTagHolder
A
IFluentMutableMultiTagHolder is a IMultiTagHolder whose
tags can be added and removed programmatically and fluently.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionAdds the given tag to the currentIFluentMutableMultiTagHolderif the currentIFluentMutableMultiTagHolderdoes not contain already such a tag.voidRemoves the tag that equals the given tag from the currentIFluentMutableMultiTagHolderif the currentIFluentMutableMultiTagHoldercontains such a tag.voidRemoves all tags from the currentIFluentMutableMultiTagHolder.Methods inherited from interface IMultiTagHolder
getTags
-
Method Details
-
addTag
Adds the given tag to the currentIFluentMutableMultiTagHolderif the currentIFluentMutableMultiTagHolderdoes not contain already such a tag.- Parameters:
tag-- Returns:
- the current
IFluentMutableMultiTagHolder. - Throws:
RuntimeException- if the given tag is null or blank.
-
removeTag
Removes the tag that equals the given tag from the currentIFluentMutableMultiTagHolderif the currentIFluentMutableMultiTagHoldercontains such a tag.- Parameters:
tag-
-
removeTags
void removeTags()Removes all tags from the currentIFluentMutableMultiTagHolder.
-