public interface HasText extends CategoryHas
Interface for objects that do provide a text representation.
| Modifier and Type | Method and Description |
|---|---|
static HasText |
create(String text)
Creates a new simple text object.
|
String |
getText()
Returns text representation of an object.
|
String getText()
Returns text representation of an object.
static HasText create(String text)
Creates a new simple text object.
text - input text, cannot be blankNullPointerException - if text was nullIllegalArgumentException - if text was blankCopyright © 2016–2017. All rights reserved.