|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hamcrest.BaseDescription
public abstract class BaseDescription
A Description
that is stored as a string.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.hamcrest.Description |
---|
Description.NullDescription |
Field Summary |
---|
Fields inherited from interface org.hamcrest.Description |
---|
NONE |
Constructor Summary | |
---|---|
BaseDescription()
|
Method Summary | ||
---|---|---|
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. |
|
|
appendValueList(String start,
String separator,
String end,
Iterable<T> values)
Appends a list of values to the description. |
|
|
appendValueList(String start,
String separator,
String end,
T... values)
Appends a list of values to the description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseDescription()
Method Detail |
---|
public Description appendText(String text)
Description
appendText
in interface Description
public Description appendDescriptionOf(SelfDescribing value)
Description
SelfDescribing
value to this description.
appendDescriptionOf
in interface Description
public Description appendValue(Object value)
Description
appendValue
in interface Description
public <T> Description appendValueList(String start, String separator, String end, T... values)
Description
appendValueList
in interface Description
public <T> Description appendValueList(String start, String separator, String end, Iterable<T> values)
Description
appendValueList
in interface Description
public Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
Description
SelfDescribing
objects
to the description.
appendList
in interface Description
protected void append(String str)
append(char)
.
Override in subclasses to provide an efficient implementation.
protected abstract void append(char c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |