Interface FluentMutableMultiTextHolder<H extends FluentMutableMultiTextHolder<H>>
- Type Parameters:
H- the type of aFluentMutableMultiTextHolder
- All Superinterfaces:
MultiTextHolder
public interface FluentMutableMultiTextHolder<H extends FluentMutableMultiTextHolder<H>>
extends MultiTextHolder
A
FluentMutableMultiTextHolder is a MultiTextHolder whose
texts can be added programmatically and fluently and removed
programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionAdds the given text to the currentFluentMutableMultiTextHolderif the currentFluentMutableMultiTextHolderdoes not contain already the given text.voidremoveText(String text) Removes the given text from the currentFluentMutableMultiTextHolderif the currentFluentMutableMultiTextHoldercontains the given text.voidRemoves all texts from the currentFluentMutableMultiTextHolder.Methods inherited from interface MultiTextHolder
getTexts
-
Method Details
-
addText
Adds the given text to the currentFluentMutableMultiTextHolderif the currentFluentMutableMultiTextHolderdoes not contain already the given text.- Parameters:
text-- Returns:
- the current
FluentMutableMultiTextHolder - Throws:
RuntimeException- if the given text is null or blank
-
removeText
Removes the given text from the currentFluentMutableMultiTextHolderif the currentFluentMutableMultiTextHoldercontains the given text.- Parameters:
text-
-
removeTexts
void removeTexts()Removes all texts from the currentFluentMutableMultiTextHolder.
-