org.hamcrest
Class StringDescription

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

public class StringDescription
extends BaseDescription

A Description that is stored as a string.


Constructor Summary
StringDescription()
           
StringDescription(Appendable out)
           
 
Method Summary
static String asString(SelfDescribing selfDescribing)
          Alias for toString(SelfDescribing).
 String toString()
          Returns the description as a string.
static String toString(SelfDescribing value)
          Return the description of a SelfDescribing object as a String.
 
Methods inherited from class org.hamcrest.BaseDescription
appendDescriptionOf, appendList, appendText, appendValue, appendValueList, appendValueList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringDescription

public StringDescription()

StringDescription

public StringDescription(Appendable out)
Method Detail

toString

public static String toString(SelfDescribing value)
Return the description of a SelfDescribing object as a String.

Parameters:
value - The object to be described.
Returns:
The description of the object.

asString

public static String asString(SelfDescribing selfDescribing)
Alias for toString(SelfDescribing).


toString

public String toString()
Returns the description as a string.

Overrides:
toString in class Object