org.hamcrest
Class StringDescription

java.lang.Object
  extended by org.hamcrest.StringDescription
All Implemented Interfaces:
Description

public class StringDescription
extends Object
implements Description


Constructor Summary
StringDescription()
           
StringDescription(StringBuffer buffer)
           
 
Method Summary
 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.
<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.
 String toString()
           
static String toString(SelfDescribing selfDescribing)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringDescription

public StringDescription()

StringDescription

public StringDescription(StringBuffer buffer)
Method Detail

toString

public static String toString(SelfDescribing selfDescribing)

appendText

public Description appendText(String text)
Description copied from interface: Description
Appends some plain text to the description.

Specified by:
appendText in interface Description

appendValue

public Description appendValue(Object value)
Description copied from interface: Description
Appends an arbitary value to the description.

Specified by:
appendValue in interface Description

appendValueList

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

Specified by:
appendValueList in interface Description

appendValueList

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

Specified by:
appendValueList in interface Description

appendList

public Description appendList(String start,
                              String separator,
                              String end,
                              Iterable<? extends SelfDescribing> values)
Description copied from interface: Description
Appends a list of SelfDescribing objects to the description.

Specified by:
appendList in interface Description

toString

public String toString()
Overrides:
toString in class Object