public class StringDescription extends BaseDescription
Description that is stored as a string.| Constructor and Description |
|---|
StringDescription() |
StringDescription(Appendable out) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(char c)
Append the char c to the description.
|
protected void |
append(String str)
Append the String str to the description.
|
static String |
asString(SelfDescribing selfDescribing)
Alias for
toString(SelfDescribing). |
String |
toString()
Returns the description as a string.
|
static String |
toString(SelfDescribing value)
Return the description of a
SelfDescribing object as a String. |
appendDescriptionOf, appendList, appendText, appendValue, appendValueList, appendValueListpublic StringDescription()
public StringDescription(Appendable out)
public static String toString(SelfDescribing value)
SelfDescribing object as a String.selfDescribing - The object to be described.public static String asString(SelfDescribing selfDescribing)
toString(SelfDescribing).protected void append(String str)
BaseDescriptionBaseDescription.append(char).
Override in subclasses to provide an efficient implementation.append in class BaseDescriptionprotected void append(char c)
BaseDescriptionappend in class BaseDescriptionCopyright © 2018. All rights reserved.