Package org.hamcrest
Interface Description
- All Known Implementing Classes:
BaseDescription,Description.NullDescription,StringDescription
public interface Description
A description of a Matcher. A Matcher will describe itself to a description which can later be used for reporting.
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDescription.NullDescription
Field Summary
Fields Modifier and Type Field Description static DescriptionNONEA description that consumes input but does nothing.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescriptionappendDescriptionOf(SelfDescribing value)Appends the description of aSelfDescribingvalue to this description.DescriptionappendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)Appends a list ofSelfDescribingobjects to the description.DescriptionappendText(String text)Appends some plain text to the description.DescriptionappendValue(Object value)Appends an arbitary value to the description.<T> DescriptionappendValueList(String start, String separator, String end, Iterable<T> values)Appends a list of values to the description.<T> DescriptionappendValueList(String start, String separator, String end, T... values)Appends a list of values to the description.
Field Detail
NONE
static final Description NONE
A description that consumes input but does nothing.
Method Detail
appendText
Description appendText(String text)
Appends some plain text to the description.
appendDescriptionOf
Description appendDescriptionOf(SelfDescribing value)
Appends the description of aSelfDescribingvalue to this description.
appendValue
Description appendValue(Object value)
Appends an arbitary value to the description.
appendValueList
<T> Description appendValueList(String start, String separator, String end, T... values)
Appends a list of values to the description.
appendValueList
<T> Description appendValueList(String start, String separator, String end, Iterable<T> values)
Appends a list of values to the description.
appendList
Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
Appends a list ofSelfDescribingobjects to the description.