Top Description Inners Fields Methods
org.hamcrest

public Interface Description

Known Direct Implementers
org.hamcrest.Description.NullDescription, org.hamcrest.BaseDescription

A description of a Matcher. A Matcher will describe itself to a description which can later be used for reporting.
See Also
Matcher#describeTo(Description)

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final Description
NONE

A description that consumes input but does nothing.

Method Summary

Modifier and TypeMethod and Description
public Description
appendDescriptionOf(SelfDescribing value)

Appends the description of a SelfDescribing value to this description.

public Description
appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)

Appends a list of org.hamcrest.SelfDescribing objects to the description.

public Description
appendText(String text)

Appends some plain text to the description.

public Description
appendValue(Object value)

Appends an arbitary value to the description.

public <T> Description
appendValueList(String start, String separator, String end, T... values)

Appends a list of values to the description.

public <T> Description
appendValueList(String start, String separator, String end, Iterable<T> values)

Appends a list of values to the description.

Field Detail

NONEback to summary
public static final Description NONE

A description that consumes input but does nothing.

Method Detail

appendDescriptionOfback to summary
public Description appendDescriptionOf(SelfDescribing value)

Appends the description of a SelfDescribing value to this description.

appendListback to summary
public Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)

Appends a list of org.hamcrest.SelfDescribing objects to the description.

appendTextback to summary
public Description appendText(String text)

Appends some plain text to the description.

appendValueback to summary
public Description appendValue(Object value)

Appends an arbitary value to the description.

appendValueListback to summary
public <T> Description appendValueList(String start, String separator, String end, T... values)

Appends a list of values to the description.

appendValueListback to summary
public <T> Description appendValueList(String start, String separator, String end, Iterable<T> values)

Appends a list of values to the description.

org.hamcrest back to summary

public final Class Description.NullDescription

extends Object
implements Description
Class Inheritance
All Implemented Interfaces
org.hamcrest.Description

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Description
appendDescriptionOf(SelfDescribing value)

Implements org.hamcrest.Description.appendDescriptionOf.

Appends the description of a SelfDescribing value to this description.
public Description
appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)

Implements org.hamcrest.Description.appendList.

Appends a list of org.hamcrest.SelfDescribing objects to the description.
public Description
appendText(String text)

Implements org.hamcrest.Description.appendText.

Appends some plain text to the description.
public Description
appendValue(Object value)

Implements org.hamcrest.Description.appendValue.

Appends an arbitary value to the description.
public <T> Description
appendValueList(String start, String separator, String end, T... values)

Implements org.hamcrest.Description.appendValueList.

Appends a list of values to the description.
public <T> Description
appendValueList(String start, String separator, String end, Iterable<T> values)

Implements org.hamcrest.Description.appendValueList.

Appends a list of values to the description.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

NullDescriptionback to summary
public NullDescription()

Method Detail

appendDescriptionOfback to summary
public Description appendDescriptionOf(SelfDescribing value)

Implements org.hamcrest.Description.appendDescriptionOf.

Doc from org.hamcrest.Description.appendDescriptionOf.

Appends the description of a SelfDescribing value to this description.

Annotations
@Override
appendListback to summary
public Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)

Implements org.hamcrest.Description.appendList.

Doc from org.hamcrest.Description.appendList.

Appends a list of org.hamcrest.SelfDescribing objects to the description.

Annotations
@Override
appendTextback to summary
public Description appendText(String text)

Implements org.hamcrest.Description.appendText.

Doc from org.hamcrest.Description.appendText.

Appends some plain text to the description.

Annotations
@Override
appendValueback to summary
public Description appendValue(Object value)

Implements org.hamcrest.Description.appendValue.

Doc from org.hamcrest.Description.appendValue.

Appends an arbitary value to the description.

Annotations
@Override
appendValueListback to summary
public <T> Description appendValueList(String start, String separator, String end, T... values)

Implements org.hamcrest.Description.appendValueList.

Doc from org.hamcrest.Description.appendValueList.

Appends a list of values to the description.

Annotations
@Override
appendValueListback to summary
public <T> Description appendValueList(String start, String separator, String end, Iterable<T> values)

Implements org.hamcrest.Description.appendValueList.

Doc from org.hamcrest.Description.appendValueList.

Appends a list of values to the description.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override