public abstract class BaseDescription extends Object implements Description
Description that is stored as a string.| Constructor and Description |
|---|
BaseDescription() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
append(char c)
Append the char c to the description.
|
protected void |
append(String str)
Append the String str to the description.
|
Description |
appendDescriptionOf(SelfDescribing value)
Appends the description of a
SelfDescribing value to this description. |
Description |
appendList(String start,
String separator,
String end,
Iterable<? extends SelfDescribing> values)
Appends a list of
SelfDescribing objects
to the description. |
Description |
appendText(String text)
Appends some plain text to the description.
|
Description |
appendValue(Object value)
Appends an arbitary value to the description.
|
<T> Description |
appendValueList(String start,
String separator,
String end,
Iterable<T> values)
Appends a list of values to the description.
|
<T> Description |
appendValueList(String start,
String separator,
String end,
T... values)
Appends a list of values to the description.
|
public Description appendText(String text)
DescriptionappendText in interface Descriptionpublic Description appendDescriptionOf(SelfDescribing value)
DescriptionSelfDescribing value to this description.appendDescriptionOf in interface Descriptionpublic Description appendValue(Object value)
DescriptionappendValue in interface Descriptionpublic <T> Description appendValueList(String start, String separator, String end, T... values)
DescriptionappendValueList in interface Descriptionpublic <T> Description appendValueList(String start, String separator, String end, Iterable<T> values)
DescriptionappendValueList in interface Descriptionpublic Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
DescriptionSelfDescribing objects
to the description.appendList in interface Descriptionprotected void append(String str)
append(char).
Override in subclasses to provide an efficient implementation.protected abstract void append(char c)
Copyright © 2018. All rights reserved.