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.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA description that consumes input but does nothing.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final DescriptionA description that consumes input but does nothing, implemented byDescription.NullDescription.
- 
Method SummaryModifier and TypeMethodDescriptionAppends the description of aSelfDescribingvalue to this description.appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values) Appends a list ofSelfDescribingobjects to the description.appendText(String text) Appends some plain text to the description.appendValue(Object value) Appends an arbitrary 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 Details- 
NONEA description that consumes input but does nothing, implemented byDescription.NullDescription.
 
- 
- 
Method Details- 
appendTextAppends some plain text to the description.- Parameters:
- text- the text to append.
- Returns:
- the update description when displaying the matcher error.
 
- 
appendDescriptionOfAppends the description of aSelfDescribingvalue to this description.- Parameters:
- value- the value to append.
- Returns:
- the update description when displaying the matcher error.
 
- 
appendValueAppends an arbitrary value to the description.- Parameters:
- value- the object to append.
- Returns:
- the update description when displaying the matcher error.
 
- 
appendValueListAppends a list of values to the description.- Type Parameters:
- T- the description type.
- Parameters:
- start- the prefix.
- separator- the separator.
- end- the suffix.
- values- the values to append.
- Returns:
- the update description when displaying the matcher error.
 
- 
appendValueListAppends a list of values to the description.- Type Parameters:
- T- the description type.
- Parameters:
- start- the prefix.
- separator- the separator.
- end- the suffix.
- values- the values to append.
- Returns:
- the update description when displaying the matcher error.
 
- 
appendListDescription appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values) Appends a list ofSelfDescribingobjects to the description.- Parameters:
- start- the prefix.
- separator- the separator.
- end- the suffix.
- values- the values to append.
- Returns:
- the update description when displaying the matcher error.
 
 
-