public interface Description
SelfDescribing.describeTo(Description)
Modifier and Type | Interface and Description |
---|---|
static class |
Description.NullDescription |
Modifier and Type | Field and Description |
---|---|
static Description |
NONE
A description that consumes input but does nothing.
|
Modifier and Type | Method and Description |
---|---|
Description |
appendDescriptionOf(SelfDescribing value)
Appends the description of a
SelfDescribing value to this description. |
Description |
appendList(java.lang.String start,
java.lang.String separator,
java.lang.String end,
java.lang.Iterable<? extends SelfDescribing> values)
Appends a list of
SelfDescribing objects
to the description. |
Description |
appendText(java.lang.String text)
Appends some plain text to the description.
|
Description |
appendValue(java.lang.Object value)
Appends an arbitrary value to the description.
|
<T> Description |
appendValueList(java.lang.String start,
java.lang.String separator,
java.lang.String end,
java.lang.Iterable<T> values)
Appends a list of values to the description.
|
<T> Description |
appendValueList(java.lang.String start,
java.lang.String separator,
java.lang.String end,
T... values)
Appends a list of values to the description.
|
static final Description NONE
Description appendText(java.lang.String text)
Description appendDescriptionOf(SelfDescribing value)
SelfDescribing
value to this description.Description appendValue(java.lang.Object value)
<T> Description appendValueList(java.lang.String start, java.lang.String separator, java.lang.String end, T... values)
<T> Description appendValueList(java.lang.String start, java.lang.String separator, java.lang.String end, java.lang.Iterable<T> values)
Description appendList(java.lang.String start, java.lang.String separator, java.lang.String end, java.lang.Iterable<? extends SelfDescribing> values)
SelfDescribing
objects
to the description.