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 Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Description
A description that consumes input but does nothing. -
Method Summary
Modifier and TypeMethodDescriptionAppends the description of aSelfDescribing
value to this description.appendList
(String start, String separator, String end, Iterable<? extends SelfDescribing> values) Appends a list ofSelfDescribing
objects to the description.appendText
(String text) Appends some plain text to the description.appendValue
(Object value) Appends an arbitrary 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.
-
Field Details
-
NONE
A description that consumes input but does nothing.
-
-
Method Details
-
appendText
Appends some plain text to the description. -
appendDescriptionOf
Appends the description of aSelfDescribing
value to this description. -
appendValue
Appends an arbitrary value to the description. -
appendValueList
Appends a list of values to the description. -
appendValueList
Appends a list of values to the description. -
appendList
Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values) Appends a list ofSelfDescribing
objects to the description.
-